From d96e1811509feee5d7c774271808e92a315d89f4 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 7 Oct 2022 21:44:57 -0700 Subject: [PATCH] Resolve uninlined_format_args pedantic clippy lint in test suite error: variables can be used directly in the `format!` string --> test_suite/tests/test_annotations.rs:1238:30 | 1238 | serializer.serialize_str(format!("{};{:?}", f1, f2).as_str()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic` help: change this to | 1238 - serializer.serialize_str(format!("{};{:?}", f1, f2).as_str()) 1238 + serializer.serialize_str(format!("{f1};{f2:?}").as_str()) | --- test_suite/tests/test_annotations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index f4939d97..0317def6 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -1235,7 +1235,7 @@ fn serialize_variant_as_string(f1: &str, f2: &u8, serializer: S) -> Result(deserializer: D) -> Result<(String, u8), D::Error>