From e215a94bd2499f2bb8cb2515b0973c7d5c794c3a Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 23 Sep 2022 22:33:57 +0200 Subject: Apply clippy suggestions from Rust 1.64 (#725) --- askama_derive/src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/generator.rs') 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, }; -- cgit