We can match for true/false instead of true/_
This commit is contained in:
parent
c12001a574
commit
fc9c786df7
1 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ pub fn edit_in_tmpfile(rt: &Runtime, s: &mut String) -> EditResult<()> {
|
||||||
.map(|_| ())
|
.map(|_| ())
|
||||||
.map_err(|e| RuntimeError::new(RuntimeErrorKind::IOError, Some(Box::new(e))))
|
.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)))),
|
Err(e) => Err(RuntimeError::new(RuntimeErrorKind::IOError, Some(Box::new(e)))),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue