From 50cc58469d781ec2717d0744b2f9b8d2c588ab67 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 10 Jan 2024 23:28:40 -0500 Subject: [PATCH] keyfork-crossterm: silence clippy --- keyfork-crossterm/src/terminal/sys/unix.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/keyfork-crossterm/src/terminal/sys/unix.rs b/keyfork-crossterm/src/terminal/sys/unix.rs index da19a1f..b5c103d 100644 --- a/keyfork-crossterm/src/terminal/sys/unix.rs +++ b/keyfork-crossterm/src/terminal/sys/unix.rs @@ -42,6 +42,7 @@ pub(crate) fn fd_window_size(fd: i32) -> io::Result { ws_ypixel: 0, }; + #[allow(clippy::useless_conversion)] if wrap_with_result(unsafe { ioctl(fd, TIOCGWINSZ.into(), &mut size) }).is_ok() { return Ok(size.into()); }