From 50a2ec3cf1eb54fa7e57f0e1cee05dbce7bf917f Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sun, 4 Aug 2019 21:20:45 -0400 Subject: [PATCH] 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. --- src/preprocess/links.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess/links.rs b/src/preprocess/links.rs index 08d36dcd..4b7354e0 100644 --- a/src/preprocess/links.rs +++ b/src/preprocess/links.rs @@ -180,7 +180,7 @@ fn return_relative_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();