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