@@ -142,8 +142,8 @@ macro_rules! serde_string_impl {
142
142
impl <' de> $crate:: serde:: de:: Visitor <' de> for Visitor {
143
143
type Value = $name;
144
144
145
- fn expecting( & self , formatter : & mut Formatter ) -> fmt:: Result {
146
- formatter . write_str( $expecting)
145
+ fn expecting( & self , f : & mut Formatter ) -> fmt:: Result {
146
+ f . write_str( $expecting)
147
147
}
148
148
149
149
fn visit_str<E >( self , v: & str ) -> Result <Self :: Value , E >
@@ -190,8 +190,8 @@ macro_rules! serde_struct_human_string_impl {
190
190
impl <' de> $crate:: serde:: de:: Visitor <' de> for Visitor {
191
191
type Value = $name;
192
192
193
- fn expecting( & self , formatter : & mut Formatter ) -> fmt:: Result {
194
- formatter . write_str( $expecting)
193
+ fn expecting( & self , f : & mut Formatter ) -> fmt:: Result {
194
+ f . write_str( $expecting)
195
195
}
196
196
197
197
fn visit_str<E >( self , v: & str ) -> Result <Self :: Value , E >
@@ -215,8 +215,8 @@ macro_rules! serde_struct_human_string_impl {
215
215
impl <' de> $crate:: serde:: de:: Visitor <' de> for EnumVisitor {
216
216
type Value = Enum ;
217
217
218
- fn expecting( & self , formatter : & mut Formatter ) -> fmt:: Result {
219
- formatter . write_str( "a field name" )
218
+ fn expecting( & self , f : & mut Formatter ) -> fmt:: Result {
219
+ f . write_str( "a field name" )
220
220
}
221
221
222
222
fn visit_str<E >( self , v: & str ) -> Result <Self :: Value , E >
@@ -246,8 +246,8 @@ macro_rules! serde_struct_human_string_impl {
246
246
impl <' de> $crate:: serde:: de:: Visitor <' de> for Visitor {
247
247
type Value = $name;
248
248
249
- fn expecting( & self , formatter : & mut Formatter ) -> fmt:: Result {
250
- formatter . write_str( "a struct" )
249
+ fn expecting( & self , f : & mut Formatter ) -> fmt:: Result {
250
+ f . write_str( "a struct" )
251
251
}
252
252
253
253
fn visit_seq<V >( self , mut seq: V ) -> Result <Self :: Value , V :: Error >
@@ -423,8 +423,8 @@ macro_rules! impl_bytes_newtype {
423
423
impl <' de> $crate:: serde:: de:: Visitor <' de> for HexVisitor {
424
424
type Value = $t;
425
425
426
- fn expecting( & self , formatter : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
427
- formatter . write_str( "an ASCII hex string" )
426
+ fn expecting( & self , f : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
427
+ f . write_str( "an ASCII hex string" )
428
428
}
429
429
430
430
fn visit_bytes<E >( self , v: & [ u8 ] ) -> Result <Self :: Value , E >
@@ -453,8 +453,8 @@ macro_rules! impl_bytes_newtype {
453
453
impl <' de> $crate:: serde:: de:: Visitor <' de> for BytesVisitor {
454
454
type Value = $t;
455
455
456
- fn expecting( & self , formatter : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
457
- formatter . write_str( "a bytestring" )
456
+ fn expecting( & self , f : & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
457
+ f . write_str( "a bytestring" )
458
458
}
459
459
460
460
fn visit_bytes<E >( self , v: & [ u8 ] ) -> Result <Self :: Value , E >
@@ -531,8 +531,8 @@ macro_rules! user_enum {
531
531
impl <' de> $crate:: serde:: de:: Visitor <' de> for Visitor {
532
532
type Value = $name;
533
533
534
- fn expecting( & self , formatter : & mut Formatter ) -> fmt:: Result {
535
- formatter . write_str( "an enum value" )
534
+ fn expecting( & self , f : & mut Formatter ) -> fmt:: Result {
535
+ f . write_str( "an enum value" )
536
536
}
537
537
538
538
fn visit_str<E >( self , v: & str ) -> Result <Self :: Value , E >
0 commit comments