diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-09-23 22:33:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 22:33:57 +0200 |
commit | e215a94bd2499f2bb8cb2515b0973c7d5c794c3a (patch) | |
tree | 0210024ab84ae6f619706ec2cb4d15295be6b4a4 | |
parent | 92bfd9d2c3eb2ceaacb3a975e9316bc2a5e61827 (diff) | |
download | askama-e215a94bd2499f2bb8cb2515b0973c7d5c794c3a.tar.gz askama-e215a94bd2499f2bb8cb2515b0973c7d5c794c3a.tar.bz2 askama-e215a94bd2499f2bb8cb2515b0973c7d5c794c3a.zip |
Apply clippy suggestions from Rust 1.64 (#725)
-rw-r--r-- | askama_derive/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index b57a6f6..48a3798 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -1428,7 +1428,7 @@ impl<'a> Generator<'a> { .config .escapers .iter() - .find_map(|(escapers, escaper)| escapers.contains(name).then(|| escaper)) + .find_map(|(escapers, escaper)| escapers.contains(name).then_some(escaper)) .ok_or_else(|| CompileError::from("invalid escaper for escape filter"))?, None => self.input.escaper, }; |