try! -> ?
Automated conversion using the untry tool [1] and the following command: ``` $ find -name '*.rs' -type f | xargs untry ``` at the root of the Rust repo. [1]: https://github.com/japaric/untry
This commit is contained in:
parent
0dcc413e42
commit
0f02309e4b
132 changed files with 3755 additions and 3770 deletions
|
@ -315,7 +315,7 @@ pub fn recover<F: FnOnce() -> R + RecoverSafe, R>(f: F) -> Result<R> {
|
|||
let mut result = None;
|
||||
unsafe {
|
||||
let result = &mut result;
|
||||
try!(unwind::try(move || *result = Some(f())))
|
||||
unwind::try(move || *result = Some(f()))?
|
||||
}
|
||||
Ok(result.unwrap())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue