From 2f57cecf13b091448eb4dfc4c04952930e255273 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 16 Mar 2018 23:38:50 +0100 Subject: [PATCH] format! -> format_args! for an error message --- serde/src/private/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )))