diff --git a/rm/rm.rs b/rm/rm.rs index fea7f7856..e6e55897f 100644 --- a/rm/rm.rs +++ b/rm/rm.rs @@ -15,27 +15,13 @@ use std::os; use std::io::{print,stdin,stderr,stdio,fs,BufferedReader,io_error}; use extra::getopts::groups; +#[deriving(Eq)] enum InteractiveMode { InteractiveNone, InteractiveOnce, InteractiveAlways } -impl Eq for InteractiveMode { - fn eq(&self, other: &InteractiveMode) -> bool { - match (*self, *other) { - (InteractiveNone, InteractiveNone) | - (InteractiveOnce, InteractiveOnce) | - (InteractiveAlways, InteractiveAlways) => true, - _ => false - } - } - - fn ne(&self, other: &InteractiveMode) -> bool { - !self.eq(other) - } -} - fn main() { let args = os::args(); let program = args[0].clone();