diff --git a/cut/cut.rs b/cut/cut.rs index 9cc353b8a..b5ef40a12 100644 --- a/cut/cut.rs +++ b/cut/cut.rs @@ -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}; diff --git a/nohup/nohup.rs b/nohup/nohup.rs index 75bf1f36a..492503eee 100644 --- a/nohup/nohup.rs +++ b/nohup/nohup.rs @@ -35,7 +35,10 @@ extern { #[cfg(target_os = "macos")] fn rewind_stdout(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")]