keyfork-crossterm: silence clippy
This commit is contained in:
parent
aba62fc4bf
commit
50cc58469d
|
@ -42,6 +42,7 @@ pub(crate) fn fd_window_size(fd: i32) -> io::Result<WindowSize> {
|
|||
ws_ypixel: 0,
|
||||
};
|
||||
|
||||
#[allow(clippy::useless_conversion)]
|
||||
if wrap_with_result(unsafe { ioctl(fd, TIOCGWINSZ.into(), &mut size) }).is_ok() {
|
||||
return Ok(size.into());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue