diff --git a/src/core/client_state.rs b/src/core/client_state.rs index a2aa9c4..5a3ea07 100644 --- a/src/core/client_state.rs +++ b/src/core/client_state.rs @@ -69,7 +69,7 @@ impl ClientStateParsed { let app_name = self .launch_info .as_ref() - .map(|l| l.cmdline.first().unwrap().split('/').last().unwrap()) + .map(|l| l.cmdline.first().unwrap().split('/').next_back().unwrap()) .unwrap_or("unknown"); let state_file_path = directory .join(format!("{app_name}-{}", nanoid::nanoid!())) diff --git a/src/objects/input/mouse_pointer.rs b/src/objects/input/mouse_pointer.rs index 602172f..35c9618 100644 --- a/src/objects/input/mouse_pointer.rs +++ b/src/objects/input/mouse_pointer.rs @@ -150,7 +150,7 @@ impl MousePointer { let first_distance = handlers .first() .map(|(_, distance)| *distance) - .unwrap_or(std::f32::NEG_INFINITY); + .unwrap_or(f32::NEG_INFINITY); self.pointer.set_handler_order( handlers