diff options
Diffstat (limited to 'tvix/eval/src/vm.rs')
-rw-r--r-- | tvix/eval/src/vm.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs index c54c005b0041..4e92c152a8d5 100644 --- a/tvix/eval/src/vm.rs +++ b/tvix/eval/src/vm.rs @@ -3,8 +3,6 @@ use std::{cell::RefMut, path::PathBuf, rc::Rc}; -use path_clean::PathClean; - use crate::{ chunk::Chunk, errors::{Error, ErrorKind, EvalResult}, @@ -396,7 +394,7 @@ impl<'o> VM<'o> { &v.coerce_to_string(CoercionKind::Weak, self) .map_err(|ek| self.error(ek))?, ); - PathBuf::from(path).clean().into() + crate::value::canon_path(PathBuf::from(path)).into() } _ => fallible!(self, arithmetic_op!(&a, &b, +)), }; |