Silence compiler warning

The `split` variable in `split_uri` should not be `mut`.
This commit is contained in:
JasonLG1979 2022-02-22 19:26:44 -06:00
parent 47f1362453
commit 30c960a6cd

View file

@ -163,12 +163,7 @@ fn split_uri(s: &str) -> Option<impl Iterator<Item = &'_ str>> {
};
let rest = rest.trim_end_matches(sep);
let mut split = rest.split(sep);
#[cfg(debug_assertions)]
if rest.is_empty() {
assert_eq!(split.next(), Some(""));
}
let split = rest.split(sep);
Some(iter::once(scheme).chain(split))
}