提交 f526d249 编写于 作者: B Ben S

Remove trivial cast

上级 fa51a877
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册