diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-07 19:28:34 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-07 19:28:34 +0200 |
| commit | 13230db68c3cb2842f23f95fc1b47fd989e6277d (patch) | |
| tree | b0bf94a8e3f935a7e9076237783846dee14e3e81 /src/syntax | |
| parent | d2e220245d9c17a0ac8c3474984924f65ed6b835 (diff) | |
Fix some clippy warnings ✔
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/ast/lit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/ast/lit.rs b/src/syntax/ast/lit.rs index 31566e89..4370345a 100644 --- a/src/syntax/ast/lit.rs +++ b/src/syntax/ast/lit.rs @@ -36,7 +36,7 @@ pub enum Lit { } /// A dictionary literal: `(false, 12cm, greeting = "hi")`. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Default, Clone, PartialEq)] pub struct LitDict(pub Vec<LitDictEntry>); /// An entry in a dictionary literal: `false` or `greeting = "hi"`. @@ -51,6 +51,6 @@ pub struct LitDictEntry { impl LitDict { /// Create an empty dict literal. pub fn new() -> Self { - Self(vec![]) + Self::default() } } |
