diff options
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/dict.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/dict.rs b/src/eval/dict.rs index 1b28a6ba..49a60147 100644 --- a/src/eval/dict.rs +++ b/src/eval/dict.rs @@ -88,7 +88,7 @@ impl Dict { /// Remove a mapping by `key` and return the value. pub fn remove(&mut self, key: &str) -> StrResult<Value> { - match Arc::make_mut(&mut self.0).remove(key) { + match Arc::make_mut(&mut self.0).shift_remove(key) { Some(value) => Ok(value), None => Err(missing_key(key)), } |
