mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Remove a couple of warnings
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
+4
-1
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user