about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/value/attrs.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index bacfd22217bd..5ec5b8ccc77c 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -30,8 +30,9 @@ lazy_static! {
 #[cfg(test)]
 mod tests;
 
-#[derive(Clone, Debug, Deserialize)]
+#[derive(Clone, Debug, Deserialize, Default)]
 pub(super) enum AttrsRep {
+    #[default]
     Empty,
 
     Im(OrdMap<NixString, Value>),
@@ -45,12 +46,6 @@ pub(super) enum AttrsRep {
     },
 }
 
-impl Default for AttrsRep {
-    fn default() -> Self {
-        AttrsRep::Empty
-    }
-}
-
 impl AttrsRep {
     /// Retrieve reference to a mutable map inside of an attrs,
     /// optionally changing the representation if required.