chore: clippy

This commit is contained in:
Nova
2025-04-19 02:22:58 -07:00
parent 7067d048d6
commit b196cbfa3a
2 changed files with 2 additions and 2 deletions

View File

@@ -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!()))

View File

@@ -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