Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quick_error! {
- enum DocsError {
- Io(path: PathBuf, io::Error) {
- context(path: &Path, err: io::Error)
- -> (path.to_path_buf(), err)
- }
- Format(path: PathBuf, lineno: usize, doc::FormatError) {
- context(file_line: (&Path, usize), err: io::Error)
- -> (file_line.0.to_path_buf(), file_line.1, err)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement