keyfork-crossterm: silence clippy

This commit is contained in:
Ryan Heywood 2024-01-10 23:28:40 -05:00
parent aba62fc4bf
commit 50cc58469d
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ pub(crate) fn fd_window_size(fd: i32) -> io::Result<WindowSize> {
ws_ypixel: 0, ws_ypixel: 0,
}; };
#[allow(clippy::useless_conversion)]
if wrap_with_result(unsafe { ioctl(fd, TIOCGWINSZ.into(), &mut size) }).is_ok() { if wrap_with_result(unsafe { ioctl(fd, TIOCGWINSZ.into(), &mut size) }).is_ok() {
return Ok(size.into()); return Ok(size.into());
} }