mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 17:11:02 +00:00
format! -> format_args! for an error message
This commit is contained in:
@@ -2109,7 +2109,7 @@ impl<'a, 'de, E> Deserializer<'de> for FlatMapDeserializer<'a, 'de, E>
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => return Err(Error::custom(format!(
|
None => return Err(Error::custom(format_args!(
|
||||||
"no variant of enum {} not found in flattened data",
|
"no variant of enum {} not found in flattened data",
|
||||||
name
|
name
|
||||||
)))
|
)))
|
||||||
|
|||||||
Reference in New Issue
Block a user