mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Remove needless '&mut self' from HTMLModElementMethods.
This commit is contained in:
parent
9c1c0a8748
commit
1b956ad92e
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLModElement {
|
|||
|
||||
pub trait HTMLModElementMethods {
|
||||
fn Cite(&self) -> DOMString;
|
||||
fn SetCite(&mut self, _cite: DOMString) -> ErrorResult;
|
||||
fn SetCite(&self, _cite: DOMString) -> ErrorResult;
|
||||
fn DateTime(&self) -> DOMString;
|
||||
fn SetDateTime(&mut self, _datetime: DOMString) -> ErrorResult;
|
||||
fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
|
||||
|
@ -49,7 +49,7 @@ impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCite(&mut self, _cite: DOMString) -> ErrorResult {
|
||||
fn SetCite(&self, _cite: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl<'a> HTMLModElementMethods for JSRef<'a, HTMLModElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDateTime(&mut self, _datetime: DOMString) -> ErrorResult {
|
||||
fn SetDateTime(&self, _datetime: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue