Fix clippy lints for Rust 1.87
This commit is contained in:
parent
204c4773d5
commit
9a7ea88d55
5 changed files with 11 additions and 20 deletions
|
|
@ -261,7 +261,7 @@ where
|
|||
let locate = |cursor_position: Point| -> Option<T> {
|
||||
let bounds = layout.bounds();
|
||||
|
||||
let new_value = if cursor_position.x <= bounds.x {
|
||||
if cursor_position.x <= bounds.x {
|
||||
Some(*self.range.start())
|
||||
} else if cursor_position.x >= bounds.x + bounds.width {
|
||||
Some(*self.range.end())
|
||||
|
|
@ -283,9 +283,7 @@ where
|
|||
let value = steps * step + start;
|
||||
|
||||
T::from_f64(value.min(end))
|
||||
};
|
||||
|
||||
new_value
|
||||
}
|
||||
};
|
||||
|
||||
let increment = |value: T| -> Option<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue