mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-18 20:54:29 -04:00
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:
committed by
Sean McArthur
parent
9fa49b77a3
commit
d190cf73a4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user