This commit is contained in:
Arpad Müller
2024-01-19 21:59:24 +01:00
parent e73c6495dc
commit 7acfbb00f9
+1 -1
View File
@@ -49,7 +49,7 @@ pub fn remove_dir_all(path: impl AsRef<Path>) -> 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? {