From 3003d86264680433e789d2726d0d12d2c6267c40 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 30 Jan 2023 09:51:23 +0100 Subject: Apply clippy suggestions for 1.67 (#769) --- testing/tests/simple.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/tests/simple.rs') diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index ebc8267..627a8a3 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -311,14 +311,14 @@ struct FunctionRefTemplate { #[test] fn test_func_ref_call() { let t = FunctionRefTemplate { - world: |s, r| format!("world({}, {})", s, r), + world: |s, r| format!("world({s}, {r})"), }; assert_eq!(t.render().unwrap(), "Hello, world(123, 4)!"); } #[allow(clippy::trivially_copy_pass_by_ref)] fn world2(s: &str, v: u8) -> String { - format!("world{}{}", v, s) + format!("world{v}{s}") } #[derive(Template)] @@ -346,7 +346,7 @@ struct FunctionTemplate; impl FunctionTemplate { #[allow(clippy::trivially_copy_pass_by_ref)] fn world3(&self, s: &str, v: u8) -> String { - format!("world{}{}", s, v) + format!("world{s}{v}") } } -- cgit