mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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 {
|
||||
fn Disabled(&self) -> bool;
|
||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult;
|
||||
fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
|
||||
fn Label(&self) -> DOMString;
|
||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult;
|
||||
fn SetLabel(&self, _label: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
|||
false
|
||||
}
|
||||
|
||||
fn SetDisabled(&mut self, _disabled: bool) -> ErrorResult {
|
||||
fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLOptGroupElementMethods for JSRef<'a, HTMLOptGroupElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLabel(&mut self, _label: DOMString) -> ErrorResult {
|
||||
fn SetLabel(&self, _label: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue