Don't bother splitting the path after the 3rd colon

This commit is contained in:
Carol (Nichols || Goulding) 2019-08-05 20:03:51 -04:00
parent 3716123e10
commit d968443074
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(':').fuse();
let mut parts = path.splitn(4, ':').fuse();
let path = parts.next().unwrap().into();
let next_element = parts.next();