We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d071c99 commit 277dc3cCopy full SHA for 277dc3c
src/core/client_state.rs
@@ -69,7 +69,7 @@ impl ClientStateParsed {
69
let app_name = self
70
.launch_info
71
.as_ref()
72
- .map(|l| l.cmdline.first().unwrap().split('/').last().unwrap())
+ .map(|l| l.cmdline.first().unwrap().split('/').next_back().unwrap())
73
.unwrap_or("unknown");
74
let state_file_path = directory
75
.join(format!("{app_name}-{}", nanoid::nanoid!()))
src/objects/input/mouse_pointer.rs
@@ -150,7 +150,7 @@ impl MousePointer {
150
let first_distance = handlers
151
.first()
152
.map(|(_, distance)| *distance)
153
- .unwrap_or(std::f32::NEG_INFINITY);
+ .unwrap_or(f32::NEG_INFINITY);
154
155
self.pointer.set_handler_order(
156
handlers
0 commit comments