mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #968 from JasonLG1979/silence-compiler-warning
Silence compiler warning
This commit is contained in:
commit
dfa48562c4
1 changed files with 1 additions and 6 deletions
|
@ -163,12 +163,7 @@ fn split_uri(s: &str) -> Option<impl Iterator<Item = &'_ str>> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let rest = rest.trim_end_matches(sep);
|
let rest = rest.trim_end_matches(sep);
|
||||||
let mut split = rest.split(sep);
|
let split = rest.split(sep);
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
if rest.is_empty() {
|
|
||||||
assert_eq!(split.next(), Some(""));
|
|
||||||
}
|
|
||||||
|
|
||||||
Some(iter::once(scheme).chain(split))
|
Some(iter::once(scheme).chain(split))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue