aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--askama_derive/src/generator.rs2
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,
};