1 2 3 4 5 6 7 8
macro_rules! io_error { ($kind:expr, $msg:expr) => { std::io::Error::new($kind, $msg) }; ($msg:expr) => { std::io::Error::new(std::io::ErrorKind::Other, $msg) }; }