diff --git a/serde/src/private/de.rs b/serde/src/private/de.rs index 7bc15947..80e7e8c7 100644 --- a/serde/src/private/de.rs +++ b/serde/src/private/de.rs @@ -2109,7 +2109,7 @@ impl<'a, 'de, E> Deserializer<'de> for FlatMapDeserializer<'a, 'de, E> continue; } } - None => return Err(Error::custom(format!( + None => return Err(Error::custom(format_args!( "no variant of enum {} not found in flattened data", name )))