mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
Remove needless '&mut self' from HTMLDirectryElementMethods.
This commit is contained in:
parent
3092ea2055
commit
1295d75cbf
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ impl HTMLDirectoryElement {
|
||||||
|
|
||||||
pub trait HTMLDirectoryElementMethods {
|
pub trait HTMLDirectoryElementMethods {
|
||||||
fn Compact(&self) -> bool;
|
fn Compact(&self) -> bool;
|
||||||
fn SetCompact(&mut self, _compact: bool) -> ErrorResult;
|
fn SetCompact(&self, _compact: bool) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
|
impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
|
||||||
|
@ -47,7 +47,7 @@ impl<'a> HTMLDirectoryElementMethods for JSRef<'a, HTMLDirectoryElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetCompact(&mut self, _compact: bool) -> ErrorResult {
|
fn SetCompact(&self, _compact: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue