diff --git a/sehn/src/de/base/mod.rs b/sehn/src/de/base/mod.rs index c257162..f3757dd 100644 --- a/sehn/src/de/base/mod.rs +++ b/sehn/src/de/base/mod.rs @@ -42,7 +42,7 @@ impl<'de, R> Deserializer<'de> for &mut BaseDeserializer { type Error = R::Error; - // fn deserialize_str(self) -> Result<&'de str, Self::Error> { + // fn deserialize_str(self) -> Result<&'de str, Self::Error> { // } } \ No newline at end of file diff --git a/sehn/src/de/error.rs b/sehn/src/de/error.rs index 12cec3f..bbbbe81 100644 --- a/sehn/src/de/error.rs +++ b/sehn/src/de/error.rs @@ -6,12 +6,12 @@ pub enum DeserializerError { } impl fmt::Debug for DeserializerError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { use DeserializerError::*; match self { Unexpected(ref err) => write!(f, "unexpected error: {}", err) } - } + } } pub trait Error: fmt::Debug + From {} diff --git a/sehn/src/de/mod.rs b/sehn/src/de/mod.rs index 989453f..fb51ebe 100644 --- a/sehn/src/de/mod.rs +++ b/sehn/src/de/mod.rs @@ -24,15 +24,15 @@ pub trait Deserialize: Sized { } // pub trait Unit { -// fn from_name_value(name: &str, value: T) -> Result -// where -// T: Deserialize, -// E: Error; +// fn from_name_value(name: &str, value: T) -> Result +// where +// T: Deserialize, +// E: Error; // } // pub enum MaybeUnit<'a, T> { -// Raw(T), -// Wrapped(&'a str, T) +// Raw(T), +// Wrapped(&'a str, T) // } pub trait Deserializer<'de> { @@ -47,6 +47,6 @@ pub trait Deserializer<'de> { //fn deserialize_str(self) -> Result<&'de str, Self::Error>; //fn deserialize_unit(self) -> Result - // where U: Unit; + // where U: Unit; //fn deserialize_maybe_unit(self) -> Result; } \ No newline at end of file