mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Fix clippy warning
This commit is contained in:
parent
d531c96d13
commit
d181493084
@ -1199,8 +1199,7 @@ impl<'a> Generator<'a, '_> {
|
|||||||
// locals in the normalized manner
|
// locals in the normalized manner
|
||||||
let normalized_arg = normalize_identifier(arg);
|
let normalized_arg = normalize_identifier(arg);
|
||||||
buf.write(format_args!(
|
buf.write(format_args!(
|
||||||
"let {} = {before}{value}{after};",
|
"let {normalized_arg} = {before}{value}{after};"
|
||||||
normalized_arg
|
|
||||||
));
|
));
|
||||||
this.locals
|
this.locals
|
||||||
.insert_with_default(Cow::Borrowed(normalized_arg));
|
.insert_with_default(Cow::Borrowed(normalized_arg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user