Skip to content

Commit

Permalink
Fix new rustc lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and djc committed May 16, 2024
1 parent dd6b6be commit 4d237ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions testing/tests/inheritance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down
1 change: 1 addition & 0 deletions testing/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
Expand Down

0 comments on commit 4d237ab

Please sign in to comment.