Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active May 18, 2016 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tailhook/fe715beb6f9bc5d8a3745db9e295ebaf to your computer and use it in GitHub Desktop.
Save tailhook/fe715beb6f9bc5d8a3745db9e295ebaf to your computer and use it in GitHub Desktop.
let mut file = try!(File::open(fname).context(fname));
try!(file.read_to_string(&mut buf).context(fname));
try!(buf.parse().context(fname))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment