srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/platform
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2024-07-10 22:11:00 +0200
committersrdusr <[email protected]>2024-07-10 22:11:00 +0200
commit68b645b43e19330474ff106ce5c88dab520d7417 (patch)
tree35d0fd75831a0f60a8c120186c2782b081423457 /crates/platform
parentd2952af18b907a5b18fccd26468a74aabe49bb2f (diff)
downloadsrdwm-68b645b43e19330474ff106ce5c88dab520d7417.tar.gz
srdwm-68b645b43e19330474ff106ce5c88dab520d7417.zip
Fix three pre-existing clippy warnings
- ipc.rs: drop a u64 -> u64 no-op cast (WindowId is a plain u64 alias). - decoration.rs: draw_line took 8 args; bundle the two endpoints into (i32, i32) tuples instead of four loose coordinates. - output_management.rs: collapse a WEnum::Value if-let directly into the outer SetTransform match arm's pattern.
Diffstat (limited to 'crates/platform')
-rw-r--r--crates/platform/src/ipc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/platform/src/ipc.rs b/crates/platform/src/ipc.rs
index 9b140f9..0d2396a 100644
--- a/crates/platform/src/ipc.rs
+++ b/crates/platform/src/ipc.rs
@@ -279,7 +279,7 @@ fn client_snapshot(wm: &std::rc::Rc<std::cell::RefCell<WindowManager>>) -> Vec<C
let focused = wm.focused_id();
wm.windows()
.map(|w| ClientInfo {
- id: w.id as u64,
+ id: w.id,
app_id: w.app_id.clone(),
title: w.title.clone(),
workspace: w.workspace,