diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-04-23 13:46:48 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-04-23 13:46:48 +0200 |
commit | a3331efa827de4020c66dafd1b425983591a55f3 (patch) | |
tree | c7a9bf5f84457aaaa2b0945548cb5b3f1fed9ff5 /askama_shared | |
parent | f959d836908aa2d6a8c9a29b0236593ea85d9734 (diff) | |
download | askama-a3331efa827de4020c66dafd1b425983591a55f3.tar.gz askama-a3331efa827de4020c66dafd1b425983591a55f3.tar.bz2 askama-a3331efa827de4020c66dafd1b425983591a55f3.zip |
Fix clippy suggestion
Diffstat (limited to '')
-rw-r--r-- | askama_shared/src/heritage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_shared/src/heritage.rs b/askama_shared/src/heritage.rs index 97580d5..e2aace6 100644 --- a/askama_shared/src/heritage.rs +++ b/askama_shared/src/heritage.rs @@ -25,7 +25,7 @@ impl<'a> Heritage<'a> { for (name, def) in &ctx.blocks { blocks .entry(name) - .or_insert_with(|| vec![]) + .or_insert_with(Vec::new) .push((ctx, def)); } } |