clippy: Fix option_as_ref_deref warnings (#31936)

This commit is contained in:
Oluwatobi Sofela 2024-03-29 12:52:45 +01:00 committed by GitHub
parent c3b6d40f90
commit a8976ff00a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 17 additions and 31 deletions

View file

@ -1019,8 +1019,7 @@ impl ElementQueue {
self.queue
.borrow_mut()
.pop_front()
.as_ref()
.map(Dom::deref)
.as_deref()
.map(DomRoot::from_ref)
}