chore: clippy
This commit is contained in:
@@ -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!()))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user