aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Nathan Lapel <nathanlapel@gmail.com>2020-03-18 22:26:04 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-03-18 22:33:51 +0100
commit3f202b32f270e8945a07962ca4413e374e2aadee (patch)
treecc507c5f4f5585e31c3f59ca0632d97990f943d9 /testing/tests
parent5e1a7384e47e01157d6a8b3beb42b57026c417e8 (diff)
downloadaskama-3f202b32f270e8945a07962ca4413e374e2aadee.tar.gz
askama-3f202b32f270e8945a07962ca4413e374e2aadee.tar.bz2
askama-3f202b32f270e8945a07962ca4413e374e2aadee.zip
Fixed clippy warnings
Diffstat (limited to 'testing/tests')
-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)
}