We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
try!
1 parent ae2e9b1 commit a3dc527Copy full SHA for a3dc527
examples/context.rs
@@ -33,7 +33,7 @@ fn parse_file() -> Result<u64, Error> {
33
let mut file = File::open(fname).context(fname)?;
34
let mut buf = String::new();
35
file.read_to_string(&mut buf).context(fname)?;
36
- Ok(try!(buf.parse().context(fname)))
+ Ok(buf.parse().context(fname)?)
37
}
38
39
fn main() {
0 commit comments