Advertisement
Guest User

Untitled

a guest
May 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. quick_error! {
  2. enum DocsError {
  3. Io(path: PathBuf, io::Error) {
  4. context(path: &Path, err: io::Error)
  5. -> (path.to_path_buf(), err)
  6. }
  7. Format(path: PathBuf, lineno: usize, doc::FormatError) {
  8. context(file_line: (&Path, usize), err: io::Error)
  9. -> (file_line.0.to_path_buf(), file_line.1, err)
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement