chore: clippy
This commit is contained in:
@@ -69,7 +69,7 @@ impl ClientStateParsed {
|
|||||||
let app_name = self
|
let app_name = self
|
||||||
.launch_info
|
.launch_info
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|l| l.cmdline.first().unwrap().split('/').last().unwrap())
|
.map(|l| l.cmdline.first().unwrap().split('/').next_back().unwrap())
|
||||||
.unwrap_or("unknown");
|
.unwrap_or("unknown");
|
||||||
let state_file_path = directory
|
let state_file_path = directory
|
||||||
.join(format!("{app_name}-{}", nanoid::nanoid!()))
|
.join(format!("{app_name}-{}", nanoid::nanoid!()))
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ impl MousePointer {
|
|||||||
let first_distance = handlers
|
let first_distance = handlers
|
||||||
.first()
|
.first()
|
||||||
.map(|(_, distance)| *distance)
|
.map(|(_, distance)| *distance)
|
||||||
.unwrap_or(std::f32::NEG_INFINITY);
|
.unwrap_or(f32::NEG_INFINITY);
|
||||||
|
|
||||||
self.pointer.set_handler_order(
|
self.pointer.set_handler_order(
|
||||||
handlers
|
handlers
|
||||||
|
|||||||
Reference in New Issue
Block a user