mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-03 15:55:31 +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)]
|
#[derive(Template)]
|
||||||
#[template(path = "let-base.html")]
|
#[template(path = "let-base.html")]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct LetBase {}
|
struct LetBase {}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_let_base() {
|
|
||||||
let t = LetBase {};
|
|
||||||
assert_eq!(t.render().unwrap(), "");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "let-child.html")]
|
#[template(path = "let-child.html")]
|
||||||
struct LetChild {}
|
struct LetChild {}
|
||||||
|
@ -345,6 +345,7 @@ struct FunctionTemplate;
|
|||||||
|
|
||||||
impl FunctionTemplate {
|
impl FunctionTemplate {
|
||||||
#[allow(clippy::trivially_copy_pass_by_ref)]
|
#[allow(clippy::trivially_copy_pass_by_ref)]
|
||||||
|
#[allow(dead_code)]
|
||||||
fn world3(&self, s: &str, v: u8) -> String {
|
fn world3(&self, s: &str, v: u8) -> String {
|
||||||
format!("world{s}{v}")
|
format!("world{s}{v}")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user