diff options
| author | 2020-03-18 22:26:04 +0100 | |
|---|---|---|
| committer | 2020-03-18 22:33:51 +0100 | |
| commit | 3f202b32f270e8945a07962ca4413e374e2aadee (patch) | |
| tree | cc507c5f4f5585e31c3f59ca0632d97990f943d9 /testing | |
| parent | 5e1a7384e47e01157d6a8b3beb42b57026c417e8 (diff) | |
| download | askama-3f202b32f270e8945a07962ca4413e374e2aadee.tar.gz askama-3f202b32f270e8945a07962ca4413e374e2aadee.tar.bz2 askama-3f202b32f270e8945a07962ca4413e374e2aadee.zip | |
Fixed clippy warnings
Diffstat (limited to '')
| -rw-r--r-- | testing/tests/simple.rs | 2 | 
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)      } | 
