mirror of
https://github.com/servo/servo.git
synced 2025-06-21 23:59:00 +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 {
|
pub trait HTMLLIElementMethods {
|
||||||
fn Value(&self) -> i32;
|
fn Value(&self) -> i32;
|
||||||
fn SetValue(&mut self, _value: i32) -> ErrorResult;
|
fn SetValue(&self, _value: i32) -> ErrorResult;
|
||||||
fn Type(&self) -> DOMString;
|
fn Type(&self) -> DOMString;
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
||||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetValue(&mut self, _value: i32) -> ErrorResult {
|
fn SetValue(&self, _value: i32) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLLIElementMethods for JSRef<'a, HTMLLIElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
fn SetType(&self, _type: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue