Skip to content

Commit c0308c4

Browse files
committed
fix clippy and taplo complaints
1 parent d2d26e3 commit c0308c4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ smol_str = "0.3"
8585
tracing = { version = "0.1.40", default-features = false }
8686

8787
[dev-dependencies]
88+
font8x8 = "0.3.1"
8889
image = { version = "0.25.0", default-features = false, features = ["png"] }
8990
tracing = { version = "0.1.40", default-features = false, features = ["log"] }
9091
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
91-
font8x8 = "0.3.1"
9292

9393
[target.'cfg(not(target_os = "android"))'.dev-dependencies]
9494
softbuffer = { version = "0.4.6", default-features = false, features = [

examples/tester.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,10 @@ impl ApplicationHandler for App {
141141
self.posx = position.x as f32;
142142
self.posy = position.y as f32;
143143
}
144-
match source {
145-
PointerSource::Touch { force, .. } => {
146-
if self.has_pressure.is_some() {
147-
self.has_pressure = force.map(|x| x.normalized() as f32);
148-
}
149-
},
150-
_ => {},
144+
if let PointerSource::Touch { force, .. } = source {
145+
if self.has_pressure.is_some() {
146+
self.has_pressure = force.map(|x| x.normalized() as f32);
147+
}
151148
}
152149
},
153150
WindowEvent::RedrawRequested => {

0 commit comments

Comments
 (0)