mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Silence compiler warning
The `split` variable in `split_uri` should not be `mut`.
This commit is contained in:
parent
47f1362453
commit
30c960a6cd
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 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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue