From 643d9f0f32dccfae96d042338cfb6e4b3d0a68a2 Mon Sep 17 00:00:00 2001 From: Arcterus Date: Sat, 28 Jun 2014 16:45:40 -0700 Subject: [PATCH] Remove a couple of warnings --- cut/cut.rs | 1 - nohup/nohup.rs | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) 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")]