aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
Diffstat (limited to 'askama_shared/src')
-rw-r--r--askama_shared/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs
index ffc0351..918e356 100644
--- a/askama_shared/src/lib.rs
+++ b/askama_shared/src/lib.rs
@@ -55,7 +55,7 @@ impl<'a> Config<'a> {
for raw_s in raw_syntaxes {
let name = raw_s.name;
- if let Some(_) = syntaxes.insert(name.to_string(), Syntax::from(raw_s)) {
+ if syntaxes.insert(name.to_string(), Syntax::from(raw_s)).is_some() {
panic!("syntax \"{}\" is already defined", name)
}
}