From eec57523103e8455961b27c68510c190ed03260d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 2 May 2024 17:44:36 +0200 Subject: [PATCH] Fix new rustc lints --- testing/tests/inheritance.rs | 7 +------ testing/tests/simple.rs | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs index 87232b37..926008f6 100644 --- a/testing/tests/inheritance.rs +++ b/testing/tests/inheritance.rs @@ -329,14 +329,9 @@ fn test_flat_deep() { #[derive(Template)] #[template(path = "let-base.html")] +#[allow(dead_code)] struct LetBase {} -#[test] -fn test_let_base() { - let t = LetBase {}; - assert_eq!(t.render().unwrap(), ""); -} - #[derive(Template)] #[template(path = "let-child.html")] struct LetChild {} diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 40121288..a8ecb76f 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -345,6 +345,7 @@ struct FunctionTemplate; impl FunctionTemplate { #[allow(clippy::trivially_copy_pass_by_ref)] + #[allow(dead_code)] fn world3(&self, s: &str, v: u8) -> String { format!("world{s}{v}") }