We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8083908 commit 658b7ebCopy full SHA for 658b7eb
src/libstd/sys/unix/os.rs
@@ -141,7 +141,8 @@ pub fn split_paths(unparsed: &OsStr) -> SplitPaths {
141
fn is_colon(b: &u8) -> bool { *b == b':' }
142
let unparsed = unparsed.as_bytes();
143
SplitPaths {
144
- iter: unparsed.split(is_colon).map(bytes_to_path)
+ iter: unparsed.split(is_colon as fn(&u8) -> bool)
145
+ .map(bytes_to_path as fn(&'a [u8]) -> PathBuf)
146
}
147
148
0 commit comments