Don't bother splitting the path after the 3rd colon
This commit is contained in:
parent
3716123e10
commit
d968443074
|
@ -180,7 +180,7 @@ fn return_relative_path<P: AsRef<Path>>(base: P, relative: P) -> PathBuf {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_include_path(path: &str) -> LinkType<'static> {
|
fn parse_include_path(path: &str) -> LinkType<'static> {
|
||||||
let mut parts = path.split(':').fuse();
|
let mut parts = path.splitn(4, ':').fuse();
|
||||||
let path = parts.next().unwrap().into();
|
let path = parts.next().unwrap().into();
|
||||||
|
|
||||||
let next_element = parts.next();
|
let next_element = parts.next();
|
||||||
|
|
Loading…
Reference in New Issue