mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +01:00
Remove needless '&mut self' from HTMLSourceElementMethods.
This commit is contained in:
parent
708919c66d
commit
9dd2d4a288
1 changed files with 6 additions and 6 deletions
|
@ -39,11 +39,11 @@ impl HTMLSourceElement {
|
||||||
|
|
||||||
pub trait HTMLSourceElementMethods {
|
pub trait HTMLSourceElementMethods {
|
||||||
fn Src(&self) -> DOMString;
|
fn Src(&self) -> DOMString;
|
||||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult;
|
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
|
||||||
fn Type(&self) -> DOMString;
|
fn Type(&self) -> DOMString;
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||||
fn Media(&self) -> DOMString;
|
fn Media(&self) -> DOMString;
|
||||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult;
|
fn SetMedia(&self, _media: DOMString) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||||
|
@ -51,7 +51,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
fn SetType(&self, _type: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||||
"".to_owned()
|
"".to_owned()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult {
|
fn SetMedia(&self, _media: DOMString) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue