mirror of
https://github.com/servo/servo.git
synced 2025-09-22 04:40:09 +01:00
Remove needless '&mut self' from HTMLMetaElementMethods.
This commit is contained in:
parent
f510dcef37
commit
6cc9af9c05
1 changed files with 8 additions and 8 deletions
|
@ -39,13 +39,13 @@ impl HTMLMetaElement {
|
||||||
|
|
||||||
pub trait HTMLMetaElementMethods {
|
pub trait HTMLMetaElementMethods {
|
||||||
fn Name(&self) -> DOMString;
|
fn Name(&self) -> DOMString;
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult;
|
fn SetName(&self, _name: DOMString) -> ErrorResult;
|
||||||
fn HttpEquiv(&self) -> DOMString;
|
fn HttpEquiv(&self) -> DOMString;
|
||||||
fn SetHttpEquiv(&mut self, _http_equiv: DOMString) -> ErrorResult;
|
fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult;
|
||||||
fn Content(&self) -> DOMString;
|
fn Content(&self) -> DOMString;
|
||||||
fn SetContent(&mut self, _content: DOMString) -> ErrorResult;
|
fn SetContent(&self, _content: DOMString) -> ErrorResult;
|
||||||
fn Scheme(&self) -> DOMString;
|
fn Scheme(&self) -> DOMString;
|
||||||
fn SetScheme(&mut self, _scheme: DOMString) -> ErrorResult;
|
fn SetScheme(&self, _scheme: DOMString) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||||
|
@ -53,7 +53,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetName(&mut self, _name: DOMString) -> ErrorResult {
|
fn SetName(&self, _name: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetHttpEquiv(&mut self, _http_equiv: DOMString) -> ErrorResult {
|
fn SetHttpEquiv(&self, _http_equiv: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetContent(&mut self, _content: DOMString) -> ErrorResult {
|
fn SetContent(&self, _content: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ impl<'a> HTMLMetaElementMethods for JSRef<'a, HTMLMetaElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetScheme(&mut self, _scheme: DOMString) -> ErrorResult {
|
fn SetScheme(&self, _scheme: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue