aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/tests/simple.rs2
1 files changed, 2 insertions, 0 deletions
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)
}