Ensure the iterator will always return None after the first None
I'm not sure in what cases this iterator might possibly return Some again, but let's make absolutely sure.
This commit is contained in:
parent
07459aef60
commit
50a2ec3cf1
|
@ -180,7 +180,7 @@ fn return_relative_path<P: AsRef<Path>>(base: P, relative: P) -> PathBuf {
|
|||
}
|
||||
|
||||
fn parse_include_path(path: &str) -> LinkType<'static> {
|
||||
let mut parts = path.split(':');
|
||||
let mut parts = path.split(':').fuse();
|
||||
let path = parts.next().unwrap().into();
|
||||
|
||||
let next_element = parts.next();
|
||||
|
|
Loading…
Reference in New Issue