mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Simplify extracting a reference from an Option<Root<T>>, per review comments.
This commit is contained in:
parent
5713867778
commit
9de42c8935
2 changed files with 3 additions and 3 deletions
|
@ -297,7 +297,7 @@ impl Document {
|
|||
.filter_map(HTMLBaseElementCast::to_root)
|
||||
.filter(|element| ElementCast::from_ref(&**element).has_attribute(&atom!("href")))
|
||||
.next();
|
||||
self.base_element.set(base.as_ref().map(Root::r));
|
||||
self.base_element.set(base.r());
|
||||
}
|
||||
|
||||
pub fn quirks_mode(&self) -> QuirksMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue