mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove needless '&mut self' from HTMLPreElementMethods.
This commit is contained in:
parent
eccb5acad1
commit
0462f42371
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ impl HTMLPreElement {
|
||||||
|
|
||||||
pub trait HTMLPreElementMethods {
|
pub trait HTMLPreElementMethods {
|
||||||
fn Width(&self) -> i32;
|
fn Width(&self) -> i32;
|
||||||
fn SetWidth(&mut self, _width: i32) -> ErrorResult;
|
fn SetWidth(&self, _width: i32) -> ErrorResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HTMLPreElementMethods for JSRef<'a, HTMLPreElement> {
|
impl<'a> HTMLPreElementMethods for JSRef<'a, HTMLPreElement> {
|
||||||
|
@ -47,7 +47,7 @@ impl<'a> HTMLPreElementMethods for JSRef<'a, HTMLPreElement> {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn SetWidth(&mut self, _width: i32) -> ErrorResult {
|
fn SetWidth(&self, _width: i32) -> ErrorResult {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue