Skip to content

Commit

Permalink
fix: missed changes before #220 merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Jul 10, 2024
1 parent b6eeab6 commit 6d1b0a1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/file_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,7 @@ impl FileSystem for FileSystemOs {
}
}
Component::RootDir => {
#[cfg(target_os = "windows")]
{
path_buf.push("\\");
}
#[cfg(not(target_os = "windows"))]
{
#[allow(clippy::path_buf_push_overwrite)]
path_buf.push("/");
}
path_buf = PathBuf::from("/");
}
Component::CurDir | Component::Prefix(_) => {}
}
Expand Down

0 comments on commit 6d1b0a1

Please sign in to comment.