Fix clippy lints for Rust 1.66
This commit is contained in:
parent
e0c728c62c
commit
6bb01b7276
10 changed files with 28 additions and 40 deletions
|
|
@ -492,8 +492,10 @@ mod grid {
|
|||
let old_scaling = self.scaling;
|
||||
|
||||
let scaling = (self.scaling * (1.0 + y / 30.0))
|
||||
.max(Self::MIN_SCALING)
|
||||
.min(Self::MAX_SCALING);
|
||||
.clamp(
|
||||
Self::MIN_SCALING,
|
||||
Self::MAX_SCALING,
|
||||
);
|
||||
|
||||
let translation =
|
||||
if let Some(cursor_to_center) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue