Use .any(...) rather than .position(...).is_some().
This commit is contained in:
@@ -979,9 +979,7 @@ impl<'a> Verifier<'a> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let has_valid_encoding = encodings
|
let has_valid_encoding = encodings.any(|possible_enc| encoding == possible_enc);
|
||||||
.position(|possible_enc| encoding == possible_enc)
|
|
||||||
.is_some();
|
|
||||||
|
|
||||||
if !has_valid_encoding {
|
if !has_valid_encoding {
|
||||||
let mut possible_encodings = String::new();
|
let mut possible_encodings = String::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user