From 5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Fri, 12 Jul 2019 04:43:41 +1000 Subject: Implement selected clippy recommendations. --- askama_shared/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared/src/lib.rs') 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) } } -- cgit