1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Remove a couple of warnings

This commit is contained in:
Arcterus 2014-06-28 16:45:40 -07:00
parent ae4ad2bb04
commit 643d9f0f32
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,6 @@
extern crate getopts;
extern crate libc;
use std::os;
use std::io::{File, BufferedWriter, BufferedReader, stdin, print};
use getopts::{optopt, optflag, getopts, usage};

View file

@ -35,7 +35,10 @@ extern {
#[cfg(target_os = "macos")]
fn rewind_stdout<T: std::rt::rtio::RtioFileStream>(s: &mut T) {
s.seek(0, std::rt::rtio::SeekEnd);
match s.seek(0, std::rt::rtio::SeekEnd) {
Ok(_) => {}
Err(f) => crash!(1, "{}", f.detail.unwrap())
}
}
#[cfg(target_os = "linux")]