Fix new rustc lints

This commit is contained in:
Guillaume Gomez 2024-05-02 17:44:36 +02:00 committed by Dirkjan Ochtman
parent dd6b6be435
commit 4d237ab274
2 changed files with 2 additions and 6 deletions

View File

@ -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 {}

View File

@ -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}")
}