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.
This commit is contained in:
Travis Cross
2019-12-10 21:17:00 +00:00
committed by Sean McArthur
parent 9fa49b77a3
commit d190cf73a4
-8
View File
@@ -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