diff --git a/src/internal_macros.rs b/src/internal_macros.rs index 1a8c58f3..c05f2f2a 100644 --- a/src/internal_macros.rs +++ b/src/internal_macros.rs @@ -142,8 +142,8 @@ macro_rules! serde_string_impl { impl<'de> $crate::serde::de::Visitor<'de> for Visitor { type Value = $name; - fn expecting(&self, formatter: &mut Formatter) -> fmt::Result { - formatter.write_str($expecting) + fn expecting(&self, f: &mut Formatter) -> fmt::Result { + f.write_str($expecting) } fn visit_str(self, v: &str) -> Result @@ -190,8 +190,8 @@ macro_rules! serde_struct_human_string_impl { impl<'de> $crate::serde::de::Visitor<'de> for Visitor { type Value = $name; - fn expecting(&self, formatter: &mut Formatter) -> fmt::Result { - formatter.write_str($expecting) + fn expecting(&self, f: &mut Formatter) -> fmt::Result { + f.write_str($expecting) } fn visit_str(self, v: &str) -> Result @@ -215,8 +215,8 @@ macro_rules! serde_struct_human_string_impl { impl<'de> $crate::serde::de::Visitor<'de> for EnumVisitor { type Value = Enum; - fn expecting(&self, formatter: &mut Formatter) -> fmt::Result { - formatter.write_str("a field name") + fn expecting(&self, f: &mut Formatter) -> fmt::Result { + f.write_str("a field name") } fn visit_str(self, v: &str) -> Result @@ -246,8 +246,8 @@ macro_rules! serde_struct_human_string_impl { impl<'de> $crate::serde::de::Visitor<'de> for Visitor { type Value = $name; - fn expecting(&self, formatter: &mut Formatter) -> fmt::Result { - formatter.write_str("a struct") + fn expecting(&self, f: &mut Formatter) -> fmt::Result { + f.write_str("a struct") } fn visit_seq(self, mut seq: V) -> Result @@ -423,8 +423,8 @@ macro_rules! impl_bytes_newtype { impl<'de> $crate::serde::de::Visitor<'de> for HexVisitor { type Value = $t; - fn expecting(&self, formatter: &mut core::fmt::Formatter) -> core::fmt::Result { - formatter.write_str("an ASCII hex string") + fn expecting(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { + f.write_str("an ASCII hex string") } fn visit_bytes(self, v: &[u8]) -> Result @@ -453,8 +453,8 @@ macro_rules! impl_bytes_newtype { impl<'de> $crate::serde::de::Visitor<'de> for BytesVisitor { type Value = $t; - fn expecting(&self, formatter: &mut core::fmt::Formatter) -> core::fmt::Result { - formatter.write_str("a bytestring") + fn expecting(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { + f.write_str("a bytestring") } fn visit_bytes(self, v: &[u8]) -> Result @@ -531,8 +531,8 @@ macro_rules! user_enum { impl<'de> $crate::serde::de::Visitor<'de> for Visitor { type Value = $name; - fn expecting(&self, formatter: &mut Formatter) -> fmt::Result { - formatter.write_str("an enum value") + fn expecting(&self, f: &mut Formatter) -> fmt::Result { + f.write_str("an enum value") } fn visit_str(self, v: &str) -> Result