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:
parent
ae4ad2bb04
commit
643d9f0f32
2 changed files with 4 additions and 2 deletions
|
@ -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};
|
||||
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue