mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Remove needless '&mut self' from HTMLTitleElementMethods.
This commit is contained in:
parent
3aba9ffc41
commit
ca249f1940
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ impl HTMLTitleElement {
|
|||
|
||||
pub trait HTMLTitleElementMethods {
|
||||
fn Text(&self) -> DOMString;
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult;
|
||||
fn SetText(&self, _text: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
|
||||
|
@ -47,7 +47,7 @@ impl<'a> HTMLTitleElementMethods for JSRef<'a, HTMLTitleElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetText(&mut self, _text: DOMString) -> ErrorResult {
|
||||
fn SetText(&self, _text: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue