mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove needless '&mut self' from HTMLProgressElementMethods.
This commit is contained in:
parent
0462f42371
commit
6a6959a208
1 changed files with 4 additions and 4 deletions
|
@ -39,9 +39,9 @@ impl HTMLProgressElement {
|
|||
|
||||
pub trait HTMLProgressElementMethods {
|
||||
fn Value(&self) -> f64;
|
||||
fn SetValue(&mut self, _value: f64) -> ErrorResult;
|
||||
fn SetValue(&self, _value: f64) -> ErrorResult;
|
||||
fn Max(&self) -> f64;
|
||||
fn SetMax(&mut self, _max: f64) -> ErrorResult;
|
||||
fn SetMax(&self, _max: f64) -> ErrorResult;
|
||||
fn Position(&self) -> f64;
|
||||
fn GetPositiom(&self) -> Fallible<f64>;
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> {
|
|||
0f64
|
||||
}
|
||||
|
||||
fn SetValue(&mut self, _value: f64) -> ErrorResult {
|
||||
fn SetValue(&self, _value: f64) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ impl<'a> HTMLProgressElementMethods for JSRef<'a, HTMLProgressElement> {
|
|||
0f64
|
||||
}
|
||||
|
||||
fn SetMax(&mut self, _max: f64) -> ErrorResult {
|
||||
fn SetMax(&self, _max: f64) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue