Use std::path::MAIN_SEPARATOR
This commit is contained in:
1 parent
f74169d4af
commit
bbb5e5a41b
1 file changed
+1
-1
@@ -115,7 +115,7 @@ fn main() {
|
||||
let Some(path) = entry.path().to_str() else {
|
||||
continue;
|
||||
};
|
||||
let path = path.replace('\\', "/"); // always use UNIX path separators
|
||||
let path = path.replace(std::path::MAIN_SEPARATOR, "/"); // always use UNIX path separators
|
||||
|
||||
// Mark this path as consumed in either case by removing it.
|
||||
let Some(should_decode) = candidates.remove(path.as_str()) else {
|
||||
|
||||
Reference in new issue
Block a user