mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Clean up the cast calls
This commit is contained in:
@@ -124,8 +124,7 @@ impl HTMLBodyElement {
|
||||
|
||||
impl VirtualMethods for HTMLBodyElement {
|
||||
fn super_type(&self) -> Option<&VirtualMethods> {
|
||||
let element: &HTMLElement = self.upcast::<HTMLElement>();
|
||||
Some(element as &VirtualMethods)
|
||||
Some(self.upcast::<HTMLElement>() as &VirtualMethods)
|
||||
}
|
||||
|
||||
fn bind_to_tree(&self, tree_in_doc: bool) {
|
||||
|
||||
Reference in New Issue
Block a user