mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove needless '&mut self' from HTMLOptGroupElementMethods.
This commit is contained in:
parent
9d3643275a
commit
0461fd31dd
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLOptGroupElement {
|
||||||
|
|
||||||
pub trait HTMLOptGroupElementMethods {
|
pub trait HTMLOptGroupElementMethods {
|
||||||
fn Disabled(&self) -> bool;
|
fn Disabled(&self) -> bool;
|
||||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult;
|
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
|
||||||
fn Label(&self) -> DOMString;
|
fn Label(&self) -> DOMString;
|
||||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult;
|
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
||||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult {
|
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue