Skip to content

Commit

Permalink
Update src/file_system.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Apr 10, 2024
1 parent 15805eb commit ed2205c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/file_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl FileSystem for FileSystemOs {
}
Some(".") | None => {}
Some(seg) => {
// Need to trim the extra \0 introduces by rust std rust-lang/rust#123727
path_buf.push(seg.trim_end_matches('\0'));
}
}
Expand Down

0 comments on commit ed2205c

Please sign in to comment.