mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Clippy: Fixed warnings in htmlimageelement.rs (#31800)
* Fixed warnings in htmlimageelement.rs * making changes for test-tidy to run without errors.
This commit is contained in:
parent
da3288dd00
commit
7cdff9dd06
2 changed files with 22 additions and 22 deletions
|
@ -696,10 +696,10 @@ impl VirtualMethods for HTMLIFrameElement {
|
|||
}
|
||||
|
||||
fn parse_plain_attribute(&self, name: &LocalName, value: DOMString) -> AttrValue {
|
||||
match name {
|
||||
&local_name!("sandbox") => AttrValue::from_serialized_tokenlist(value.into()),
|
||||
&local_name!("width") => AttrValue::from_dimension(value.into()),
|
||||
&local_name!("height") => AttrValue::from_dimension(value.into()),
|
||||
match *name {
|
||||
local_name!("sandbox") => AttrValue::from_serialized_tokenlist(value.into()),
|
||||
local_name!("width") => AttrValue::from_dimension(value.into()),
|
||||
local_name!("height") => AttrValue::from_dimension(value.into()),
|
||||
_ => self
|
||||
.super_type()
|
||||
.unwrap()
|
||||
|
@ -708,7 +708,7 @@ impl VirtualMethods for HTMLIFrameElement {
|
|||
}
|
||||
|
||||
fn bind_to_tree(&self, context: &BindContext) {
|
||||
if let Some(ref s) = self.super_type() {
|
||||
if let Some(s) = self.super_type() {
|
||||
s.bind_to_tree(context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue