Skip to content
Prev Previous commit
Next Next commit
compiles and tests pass
  • Loading branch information
ethanfrey committed Oct 25, 2019
commit 70ef3a331fb4cc3b50f81037c7fed5e82942c6c4
5 changes: 1 addition & 4 deletions src/de/enum_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use serde::de;

use crate::de::{Deserializer, Error, Result};

pub(crate) struct UnitVariantAccess<'a, 'b>
where
'b: 'a,
{
pub(crate) struct UnitVariantAccess<'a, 'b> {
de: &'a mut Deserializer<'b>,
}

Expand Down
10 changes: 2 additions & 8 deletions src/de/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use serde::de::{self, Visitor};

use crate::de::{Deserializer, Error};

pub struct MapAccess<'a, 'b>
where
'b: 'a,
{
pub struct MapAccess<'a, 'b> {
de: &'a mut Deserializer<'b>,
first: bool,
}
Expand Down Expand Up @@ -60,10 +57,7 @@ impl<'a, 'de> de::MapAccess<'de> for MapAccess<'a, 'de> {
}
}

struct MapKey<'a, 'b>
where
'b: 'a,
{
struct MapKey<'a, 'b> {
de: &'a mut Deserializer<'b>,
}

Expand Down
5 changes: 1 addition & 4 deletions src/de/seq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use serde::de;

use crate::de::{Deserializer, Error, Result};

pub(crate) struct SeqAccess<'a, 'b>
where
'b: 'a,
{
pub(crate) struct SeqAccess<'a, 'b> {
first: bool,
de: &'a mut Deserializer<'b>,
}
Expand Down