diff --git a/libs/utils/src/fs_ext.rs b/libs/utils/src/fs_ext.rs index 29b62ace05..6aba00f406 100644 --- a/libs/utils/src/fs_ext.rs +++ b/libs/utils/src/fs_ext.rs @@ -49,7 +49,7 @@ pub fn remove_dir_all(path: impl AsRef) -> io::Result<()> { other => Some(other), } } - let Some(list) = strip_not_found(std::fs::read_dir(path)) else { + let Some(list) = strip_not_found(std::fs::read_dir(&path)) else { return Ok(()); }; for entry in list? {