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:
llogiq 2015-09-08 07:41:50 +02:00
parent 808390817a
commit 658b7eba5b

View File

@ -141,7 +141,8 @@ pub fn split_paths(unparsed: &OsStr) -> SplitPaths {
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)
}
}