Fix clippy issues on stable

This commit is contained in:
Kirill Chibisov 2023-01-27 07:18:58 +03:00 committed by GitHub
parent e1b7fda409
commit 930df0ec45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 68 additions and 76 deletions

View file

@ -24,9 +24,9 @@ fn main() {
WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
WindowEvent::TouchpadMagnify { delta, .. } => {
if delta > 0.0 {
println!("Zoomed in {}", delta);
println!("Zoomed in {delta}");
} else {
println!("Zoomed out {}", delta);
println!("Zoomed out {delta}");
}
}
WindowEvent::SmartMagnify { .. } => {
@ -34,9 +34,9 @@ fn main() {
}
WindowEvent::TouchpadRotate { delta, .. } => {
if delta > 0.0 {
println!("Rotated counterclockwise {}", delta);
println!("Rotated counterclockwise {delta}");
} else {
println!("Rotated clockwise {}", delta);
println!("Rotated clockwise {delta}");
}
}
_ => (),