From d190cf73a4979b8fb05dae68afc8830d6e2f7bde Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Tue, 10 Dec 2019 21:17:00 +0000 Subject: [PATCH] Remove obsolete `allow(warnings)` attributes (#373) We were for a time allowing warnings on two sections of code due to continued use of `...` pattern syntax. We had deferred the change to `..=` syntax so as to support earlier Rust versions. However, in commit `6059be7a99a264abf9afb8e6b8461413b972e892` we changed over to `..=` syntax. The `allow(warnings)` attributes and the related comments are now obsolete, and we remove them in this commit. --- src/uri/path.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/uri/path.rs b/src/uri/path.rs index f1c660e..cb89e9d 100644 --- a/src/uri/path.rs +++ b/src/uri/path.rs @@ -23,10 +23,6 @@ impl PathAndQuery { let mut fragment = None; // block for iterator borrow - // - // allow: `...` pattersn are now `..=`, but we cannot update yet - // because of minimum Rust version - #[allow(warnings)] { let mut iter = src.as_ref().iter().enumerate(); @@ -61,10 +57,6 @@ impl PathAndQuery { // query ... if query != NONE { - - // allow: `...` pattersn are now `..=`, but we cannot update yet - // because of minimum Rust version - #[allow(warnings)] for (i, &b) in iter { match b { // While queries *should* be percent-encoded, most