summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast/lit.rs4
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()
}
}