mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove needless '&mut self' from HTMLUListElementMethods.
This commit is contained in:
parent
7cb4ddaa83
commit
2db6348d30
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLUListElement {
|
|||
|
||||
pub trait HTMLUListElementMethods {
|
||||
fn Compact(&self) -> bool;
|
||||
fn SetCompact(&mut self, _compact: bool) -> ErrorResult;
|
||||
fn SetCompact(&self, _compact: bool) -> ErrorResult;
|
||||
fn Type(&self) -> DOMString;
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
||||
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> {
|
||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> {
|
|||
false
|
||||
}
|
||||
|
||||
fn SetCompact(&mut self, _compact: bool) -> ErrorResult {
|
||||
fn SetCompact(&self, _compact: bool) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLUListElementMethods for JSRef<'a, HTMLUListElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
fn SetType(&self, _type: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue