Let's see if lifetime elision works in this case

This commit is contained in:
llogiq 2015-09-08 08:05:59 +02:00
parent 658b7eba5b
commit 1c87c3530c

View file

@ -142,7 +142,7 @@ pub fn split_paths(unparsed: &OsStr) -> SplitPaths {
let unparsed = unparsed.as_bytes();
SplitPaths {
iter: unparsed.split(is_colon as fn(&u8) -> bool)
.map(bytes_to_path as fn(&'a [u8]) -> PathBuf)
.map(bytes_to_path as fn(&[u8]) -> PathBuf)
}
}