Fix clippy lints for Rust 1.87

This commit is contained in:
Héctor Ramón Jiménez 2025-05-15 20:52:27 +02:00
parent 204c4773d5
commit 9a7ea88d55
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 11 additions and 20 deletions

View file

@ -264,7 +264,7 @@ where
let locate = |cursor_position: Point| -> Option<T> {
let bounds = layout.bounds();
let new_value = if cursor_position.y >= bounds.y + bounds.height {
if cursor_position.y >= bounds.y + bounds.height {
Some(*self.range.start())
} else if cursor_position.y <= bounds.y {
Some(*self.range.end())
@ -287,9 +287,7 @@ where
let value = steps * step + start;
T::from_f64(value.min(end))
};
new_value
}
};
let increment = |value: T| -> Option<T> {