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

@ -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> {