diff options
author | Bardi Harborow <bardi@bardiharborow.com> | 2019-07-12 04:43:41 +1000 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-07-11 21:49:56 +0200 |
commit | 5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a (patch) | |
tree | 1751b688ca625f5933df76b47747a685510f3909 /askama_shared/src/lib.rs | |
parent | 4bd29679c022a56b9fa8790d9095cdf8b0ee19b8 (diff) | |
download | askama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.tar.gz askama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.tar.bz2 askama-5a4ac0fe462faf2a3ba3b3f4334863cdb4bbf45a.zip |
Implement selected clippy recommendations.
Diffstat (limited to 'askama_shared/src/lib.rs')
-rw-r--r-- | askama_shared/src/lib.rs | 2 |
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) } } |