about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/attrs.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs
index 1593ab19d3aa..fced32a865a6 100644
--- a/tvix/eval/src/value/attrs.rs
+++ b/tvix/eval/src/value/attrs.rs
@@ -33,6 +33,12 @@ 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.
@@ -79,7 +85,7 @@ impl AttrsRep {
 }
 
 #[repr(transparent)]
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
 pub struct NixAttrs(AttrsRep);
 
 impl TotalDisplay for NixAttrs {