mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
Fix new rustc lints
This commit is contained in:
parent
dd6b6be435
commit
4d237ab274
@ -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 {}
|
||||
|
@ -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}")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user