aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-08-12 12:05:22 -0500
committerGitHub <noreply@github.com>2019-08-12 12:05:22 -0500
commitfa9740540f7a13675b578d6cde84d65aeb03e0b5 (patch)
tree5f32f65b6915cfaec3e9c43e0fe6e06dedb6d8f3
parentf56df234c0cfba94ac80d4ef603c1f82f28a12db (diff)
parent79d03bf0df4ce87c6716392f3bebe9f6896e1dce (diff)
downloadmilf-rs-fa9740540f7a13675b578d6cde84d65aeb03e0b5.tar.gz
milf-rs-fa9740540f7a13675b578d6cde84d65aeb03e0b5.zip
Merge pull request #317 from ehuss/outlives-requirements
Squelch explicit_outlives_requirements warning.
-rw-r--r--src/de.rs2
-rw-r--r--src/ser.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/de.rs b/src/de.rs
index f65492d..2ec7563 100644
--- a/src/de.rs
+++ b/src/de.rs
@@ -278,7 +278,7 @@ struct Table<'a> {
}
#[doc(hidden)]
-pub struct MapVisitor<'de: 'b, 'b> {
+pub struct MapVisitor<'de, 'b> {
values: vec::IntoIter<(Cow<'de, str>, Value<'de>)>,
next_value: Option<(Cow<'de, str>, Value<'de>)>,
depth: usize,
diff --git a/src/ser.rs b/src/ser.rs
index 328772a..fe4674e 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -222,7 +222,7 @@ enum State<'a> {
}
#[doc(hidden)]
-pub struct SerializeSeq<'a: 'b, 'b> {
+pub struct SerializeSeq<'a, 'b> {
ser: &'b mut Serializer<'a>,
first: Cell<bool>,
type_: Cell<Option<&'static str>>,
@@ -230,7 +230,7 @@ pub struct SerializeSeq<'a: 'b, 'b> {
}
#[doc(hidden)]
-pub enum SerializeTable<'a: 'b, 'b> {
+pub enum SerializeTable<'a, 'b> {
Datetime(&'b mut Serializer<'a>),
Table {
ser: &'b mut Serializer<'a>,
@@ -1186,7 +1186,7 @@ impl<'a, 'b> ser::SerializeStruct for SerializeTable<'a, 'b> {
}
}
-struct DateStrEmitter<'a: 'b, 'b>(&'b mut Serializer<'a>);
+struct DateStrEmitter<'a, 'b>(&'b mut Serializer<'a>);
impl<'a, 'b> ser::Serializer for DateStrEmitter<'a, 'b> {
type Ok = ();