From c203336d02b01d3a93deb57fdd026b96137f7ea0 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 18 Sep 2023 21:20:36 +0700 Subject: [PATCH] clippy: tests: Remove call to `format!`. --- tests/test_diagnostic_source_macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_diagnostic_source_macro.rs b/tests/test_diagnostic_source_macro.rs index 536aedf..df30b2e 100644 --- a/tests/test_diagnostic_source_macro.rs +++ b/tests/test_diagnostic_source_macro.rs @@ -79,7 +79,7 @@ fn test_diagnostic_source() { fn test_diagnostic_source_pass_extra_info() { let diag = TestBoxedError(Box::new(SourceError { code: String::from("Hello\nWorld!"), - help: format!("Have you tried turning it on and off again?"), + help: String::from("Have you tried turning it on and off again?"), label: (1, 4), })); let mut out = String::new();