Keep underscored names out of the documentation

This commit is contained in:
David Tolnay 2017-04-14 14:38:58 -07:00
parent e722cf8791
commit d10fa2bd86
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -65,10 +65,11 @@ impl de::Error for Error {
} }
#[cfg(not(any(feature = "std", feature = "collections")))] #[cfg(not(any(feature = "std", feature = "collections")))]
fn custom<T>(_msg: T) -> Self fn custom<T>(msg: T) -> Self
where where
T: Display, T: Display,
{ {
let _ = msg;
Error { err: () } Error { err: () }
} }
} }
@ -241,13 +242,15 @@ where
fn deserialize_enum<V>( fn deserialize_enum<V>(
self, self,
_name: &str, name: &str,
_variants: &'static [&'static str], variants: &'static [&'static str],
visitor: V, visitor: V,
) -> Result<V::Value, Self::Error> ) -> Result<V::Value, Self::Error>
where where
V: de::Visitor<'de>, V: de::Visitor<'de>,
{ {
let _ = name;
let _ = variants;
visitor.visit_enum(self) visitor.visit_enum(self)
} }
} }
@ -305,13 +308,15 @@ where
fn deserialize_enum<V>( fn deserialize_enum<V>(
self, self,
_name: &str, name: &str,
_variants: &'static [&'static str], variants: &'static [&'static str],
visitor: V, visitor: V,
) -> Result<V::Value, Self::Error> ) -> Result<V::Value, Self::Error>
where where
V: de::Visitor<'de>, V: de::Visitor<'de>,
{ {
let _ = name;
let _ = variants;
visitor.visit_enum(self) visitor.visit_enum(self)
} }
@ -378,13 +383,15 @@ where
fn deserialize_enum<V>( fn deserialize_enum<V>(
self, self,
_name: &str, name: &str,
_variants: &'static [&'static str], variants: &'static [&'static str],
visitor: V, visitor: V,
) -> Result<V::Value, Self::Error> ) -> Result<V::Value, Self::Error>
where where
V: de::Visitor<'de>, V: de::Visitor<'de>,
{ {
let _ = name;
let _ = variants;
visitor.visit_enum(self) visitor.visit_enum(self)
} }
@ -455,13 +462,15 @@ where
fn deserialize_enum<V>( fn deserialize_enum<V>(
self, self,
_name: &str, name: &str,
_variants: &'static [&'static str], variants: &'static [&'static str],
visitor: V, visitor: V,
) -> Result<V::Value, Self::Error> ) -> Result<V::Value, Self::Error>
where where
V: de::Visitor<'de>, V: de::Visitor<'de>,
{ {
let _ = name;
let _ = variants;
visitor.visit_enum(self) visitor.visit_enum(self)
} }
@ -761,12 +770,13 @@ where
fn deserialize_seq_fixed_size<V>( fn deserialize_seq_fixed_size<V>(
self, self,
_len: usize, len: usize,
visitor: V, visitor: V,
) -> Result<V::Value, Self::Error> ) -> Result<V::Value, Self::Error>
where where
V: de::Visitor<'de>, V: de::Visitor<'de>,
{ {
let _ = len;
self.deserialize_seq(visitor) self.deserialize_seq(visitor)
} }