mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +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 {
|
||||
fn Src(&self) -> DOMString;
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult;
|
||||
fn SetSrc(&self, _src: DOMString) -> ErrorResult;
|
||||
fn Type(&self) -> DOMString;
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult;
|
||||
fn SetType(&self, _type: DOMString) -> ErrorResult;
|
||||
fn Media(&self) -> DOMString;
|
||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult;
|
||||
fn SetMedia(&self, _media: DOMString) -> ErrorResult;
|
||||
}
|
||||
|
||||
impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
||||
|
@ -51,7 +51,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
fn SetSrc(&self, _src: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetType(&mut self, _type: DOMString) -> ErrorResult {
|
||||
fn SetType(&self, _type: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ impl<'a> HTMLSourceElementMethods for JSRef<'a, HTMLSourceElement> {
|
|||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetMedia(&mut self, _media: DOMString) -> ErrorResult {
|
||||
fn SetMedia(&self, _media: DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue