diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index c8a1e01..f4d1529 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ fn lines_from_file<P>(filename: &P) -> Result<Vec<String>, io::Error> where P: AsRef<Path>, { - let file = try!(File::open(filename)); + let file = File::open(filename)?; let buf = BufReader::new(file); Ok(buf .lines() |