mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Remove needless '&mut self' from HTMLLIElementMethods.
This commit is contained in:
parent
857a731eaa
commit
db76dbf5ca
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLLIElement {
|
|||
|
||||
pub trait HTMLLIElementMethods {
|
||||
fn Value(&self) -> i32;
|
||||
fn SetValue(&mut self, _value: i32) -> ErrorResult;
|
||||
fn SetValue(&self, _value: i32) -> ErrorResult;
|
||||
fn Type(&self) -> DOMString;
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
||||
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
|||
0
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: i32) -> ErrorResult {
|
||||
fn SetValue(&self, _value: i32) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
|||
"".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