Remove trivial cast

This commit is contained in:
Ben S 2015-09-04 11:17:59 +01:00
parent fa51a87767
commit f526d24911
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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
}
}