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:
Carol (Nichols || Goulding) 2019-08-04 21:20:45 -04:00
parent 07459aef60
commit 50a2ec3cf1
No known key found for this signature in database
GPG Key ID: D04B39A6CA243902
1 changed files with 1 additions and 1 deletions

View File

@ -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();