Skip to content

Commit a3dc527

Browse files
author
Tim
committed
Remove overseen try!
1 parent ae2e9b1 commit a3dc527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn parse_file() -> Result<u64, Error> {
3333
let mut file = File::open(fname).context(fname)?;
3434
let mut buf = String::new();
3535
file.read_to_string(&mut buf).context(fname)?;
36-
Ok(try!(buf.parse().context(fname)))
36+
Ok(buf.parse().context(fname)?)
3737
}
3838

3939
fn main() {

0 commit comments

Comments
 (0)