mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
changed match
to 'matches!' (#31850)
This commit is contained in:
parent
9a76dd9325
commit
bd39e03eeb
29 changed files with 185 additions and 229 deletions
|
@ -1065,10 +1065,7 @@ impl HTMLImageElement {
|
|||
|
||||
let elem = self.upcast::<Element>();
|
||||
let document = document_from_node(elem);
|
||||
let has_pending_request = match self.image_request.get() {
|
||||
ImageRequestPhase::Pending => true,
|
||||
_ => false,
|
||||
};
|
||||
let has_pending_request = matches!(self.image_request.get(), ImageRequestPhase::Pending);
|
||||
|
||||
// Step 2
|
||||
if !document.is_active() || !Self::uses_srcset_or_picture(elem) || has_pending_request {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue