mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
chore: Remove some clippy complains for 1.95 (#44276)
This removes some complains that clippy will have in 1.95. As this is mostly just match guards, it doesn't update MSRV. Testing: This is equivalent exchanges, so current WPT would find anything. --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
@@ -439,7 +439,7 @@ impl FetchResponseListener for PosterFrameFetchContext {
|
||||
|
||||
let status_is_ok = metadata
|
||||
.as_ref()
|
||||
.map_or(true, |m| m.status.in_range(200..300));
|
||||
.is_none_or(|m| m.status.in_range(200..300));
|
||||
|
||||
if !status_is_ok {
|
||||
self.cancelled = true;
|
||||
|
||||
Reference in New Issue
Block a user