diff options
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r-- | tvix/eval/src/value/list.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index 236a654ad88d..da8f70caacaf 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -1,5 +1,5 @@ //! This module implements Nix lists. -use std::ops::Deref; +use std::ops::{Deref, DerefMut}; use crate::errors::ErrorKind; use crate::vm::VM; @@ -135,3 +135,9 @@ impl Deref for NixList { &self.0 } } + +impl DerefMut for NixList { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} |