mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Fixed required type coercion
I'd have thought that the types of the slice::Split would have been inferred, but this appears not to be the case. Reverted this one change.
This commit is contained in:
@@ -141,7 +141,8 @@ fn bytes_to_path(b: &[u8]) -> PathBuf {
|
||||
fn is_colon(b: &u8) -> bool { *b == b':' }
|
||||
let unparsed = unparsed.as_bytes();
|
||||
SplitPaths {
|
||||
iter: unparsed.split(is_colon).map(bytes_to_path)
|
||||
iter: unparsed.split(is_colon as fn(&u8) -> bool)
|
||||
.map(bytes_to_path as fn(&'a [u8]) -> PathBuf)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user