Skip to content

Commit 277dc3c

Browse files
committed
chore: clippy
1 parent d071c99 commit 277dc3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/client_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl ClientStateParsed {
6969
let app_name = self
7070
.launch_info
7171
.as_ref()
72-
.map(|l| l.cmdline.first().unwrap().split('/').last().unwrap())
72+
.map(|l| l.cmdline.first().unwrap().split('/').next_back().unwrap())
7373
.unwrap_or("unknown");
7474
let state_file_path = directory
7575
.join(format!("{app_name}-{}", nanoid::nanoid!()))

src/objects/input/mouse_pointer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl MousePointer {
150150
let first_distance = handlers
151151
.first()
152152
.map(|(_, distance)| *distance)
153-
.unwrap_or(std::f32::NEG_INFINITY);
153+
.unwrap_or(f32::NEG_INFINITY);
154154

155155
self.pointer.set_handler_order(
156156
handlers

0 commit comments

Comments
 (0)