From 3f202b32f270e8945a07962ca4413e374e2aadee Mon Sep 17 00:00:00 2001 From: Nathan Lapel Date: Wed, 18 Mar 2020 22:26:04 +0100 Subject: Fixed clippy warnings --- testing/tests/simple.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 7dcacba..7db8cb4 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -276,6 +276,7 @@ fn test_func_ref_call() { 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) } @@ -294,6 +295,7 @@ fn test_path_func_call() { struct FunctionTemplate; impl FunctionTemplate { + #[allow(clippy::trivially_copy_pass_by_ref)] fn world3(&self, s: &str, v: &u8) -> String { format!("world{}{}", s, v) } -- cgit