mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 23:35:26 +00:00
format! -> format_args! for an error message
This commit is contained in:
parent
bfdcbae9db
commit
2f57cecf13
@ -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
|
||||||
)))
|
)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user