From 30c960a6cd429914137229f1e3670e590d30f6ad Mon Sep 17 00:00:00 2001 From: JasonLG1979 Date: Tue, 22 Feb 2022 19:26:44 -0600 Subject: [PATCH] Silence compiler warning The `split` variable in `split_uri` should not be `mut`. --- core/src/dealer/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/dealer/mod.rs b/core/src/dealer/mod.rs index 8da0a58c..b4cfec8e 100644 --- a/core/src/dealer/mod.rs +++ b/core/src/dealer/mod.rs @@ -163,12 +163,7 @@ fn split_uri(s: &str) -> Option> { }; 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)) }