We can match for true/false instead of true/_

This commit is contained in:
Matthias Beyer 2016-03-24 12:30:31 +01:00
parent c12001a574
commit fc9c786df7

View file

@ -56,7 +56,7 @@ pub fn edit_in_tmpfile(rt: &Runtime, s: &mut String) -> EditResult<()> {
.map(|_| ())
.map_err(|e| RuntimeError::new(RuntimeErrorKind::IOError, Some(Box::new(e))))
},
Ok(_) => Err(RuntimeError::new(RuntimeErrorKind::ProcessExitFailure, None)),
Ok(false) => Err(RuntimeError::new(RuntimeErrorKind::ProcessExitFailure, None)),
Err(e) => Err(RuntimeError::new(RuntimeErrorKind::IOError, Some(Box::new(e)))),
}
} else {