Skip to content

Commit

Permalink
Revert uninlined_format_args change in test
Browse files Browse the repository at this point in the history
I no longer believe in clippy's pedantic recommendation on this.
  • Loading branch information
dtolnay committed Feb 2, 2023
1 parent 07fc9f6 commit 35e5cf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_suite/tests/test_annotations.rs
Expand Up @@ -6,7 +6,8 @@
clippy::nonstandard_macro_braces,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
clippy::type_repetition_in_bounds
clippy::type_repetition_in_bounds,
clippy::uninlined_format_args,
)]

use serde::de::{self, MapAccess, Unexpected, Visitor};
Expand Down Expand Up @@ -1235,7 +1236,7 @@ fn serialize_variant_as_string<S>(f1: &str, f2: &u8, serializer: S) -> Result<S:
where
S: Serializer,
{
serializer.collect_str(&format_args!("{f1};{f2:?}"))
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 35e5cf3

Please sign in to comment.