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)) }