use std; use walkdir; quick_error! { #[derive(Debug)] pub enum RuntimeError { Walkdir(err: walkdir::Error) { from() cause(err) display("File enumeration error: {}", err) } Io(err: std::io::Error) { from() cause(err) display("I/O error: {}", err) } } }