diff options
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/value/attrs.rs | 9 |
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. |