mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-27 10:22:40 +00:00
Remove trivial cast
This commit is contained in:
parent
fa51a87767
commit
f526d24911
@ -2,6 +2,8 @@
|
||||
#![feature(convert, fs_mode)]
|
||||
#![feature(slice_splits, vec_resize)]
|
||||
|
||||
#![warn(trivial_casts, trivial_numeric_casts)]
|
||||
|
||||
extern crate ansi_term;
|
||||
extern crate datetime;
|
||||
extern crate getopts;
|
||||
|
@ -25,7 +25,7 @@ mod c {
|
||||
|
||||
pub unsafe fn dimensions() -> Winsize {
|
||||
let mut window: Winsize = zeroed();
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window as *mut Winsize);
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &mut window);
|
||||
window
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user