Skip to content

Commit 721c3d0

Browse files
committed
chore(clippy): fix clippy lints
1 parent f4fc1fc commit 721c3d0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/linux/x11_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl PlatformApi for X11Api {
146146
} else {
147147
name
148148
};
149-
wins.push((Some(name), window as u64));
149+
wins.push((Some(name), window));
150150
}
151151
}
152152

src/macos/window_id.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ pub fn window_list() -> Result<WindowList> {
4444
}
4545
let count = unsafe { CFArrayGetCount(window_list_info) };
4646
for i in 0..count {
47-
let dic_ref =
48-
unsafe { CFArrayGetValueAtIndex(window_list_info, i as isize) as CFDictionaryRef };
47+
let dic_ref = unsafe { CFArrayGetValueAtIndex(window_list_info, i) as CFDictionaryRef };
4948
if dic_ref.is_null() {
5049
unsafe {
5150
CFRelease(window_list_info.cast());

0 commit comments

Comments
 (0)