Skip to content

Commit

Permalink
Replace serialize_str+format -> collect_str+format_args
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 2, 2023
1 parent 14b0e18 commit 07fc9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_suite/tests/test_annotations.rs
Expand Up @@ -1235,7 +1235,7 @@ fn serialize_variant_as_string<S>(f1: &str, f2: &u8, serializer: S) -> Result<S:
where
S: Serializer,
{
serializer.serialize_str(format!("{f1};{f2:?}").as_str())
serializer.collect_str(&format_args!("{f1};{f2:?}"))
}

fn deserialize_string_as_variant<'de, D>(deserializer: D) -> Result<(String, u8), D::Error>
Expand Down

0 comments on commit 07fc9f6

Please sign in to comment.