format! -> format_args! for an error message

This commit is contained in:
Armin Ronacher 2018-03-16 23:38:50 +01:00
parent bfdcbae9db
commit 2f57cecf13

View File

@ -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
)))