mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 23:27:17 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue