Remove unnecessary type annotations in Slider
This commit is contained in:
parent
0b819de3e2
commit
c71d83fe0e
1 changed files with 3 additions and 3 deletions
|
|
@ -198,9 +198,9 @@ where
|
||||||
} else if cursor_position.x >= bounds.x + bounds.width {
|
} else if cursor_position.x >= bounds.x + bounds.width {
|
||||||
messages.push((self.on_change)(*self.range.end()));
|
messages.push((self.on_change)(*self.range.end()));
|
||||||
} else {
|
} else {
|
||||||
let step: f64 = self.step.into();
|
let step = self.step.into();
|
||||||
let start: f64 = (*self.range.start()).into();
|
let start = (*self.range.start()).into();
|
||||||
let end: f64 = (*self.range.end()).into();
|
let end = (*self.range.end()).into();
|
||||||
|
|
||||||
let percent = f64::from(cursor_position.x - bounds.x)
|
let percent = f64::from(cursor_position.x - bounds.x)
|
||||||
/ f64::from(bounds.width);
|
/ f64::from(bounds.width);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue