summaryrefslogtreecommitdiff
path: root/dhall/src/traits
diff options
context:
space:
mode:
Diffstat (limited to 'dhall/src/traits')
-rw-r--r--dhall/src/traits/deserialize.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall/src/traits/deserialize.rs b/dhall/src/traits/deserialize.rs
index cbe9aa3..43eb2ac 100644
--- a/dhall/src/traits/deserialize.rs
+++ b/dhall/src/traits/deserialize.rs
@@ -7,9 +7,9 @@ use crate::expr::*;
/// can deserialize.
///
/// This trait cannot be implemented manually.
-pub trait Deserialize<'a>: Sized {
+pub trait Deserialize<'de>: Sized {
/// See [dhall::de::from_str][crate::de::from_str]
- fn from_str(s: &'a str, ty: Option<&Type>) -> Result<Self>;
+ fn from_str(s: &'de str, ty: Option<&Type>) -> Result<Self>;
}
impl<'de: 'a, 'a> Deserialize<'de> for Parsed<'a> {