1 2 3 4 5 6 7 8 9 10 11 12
use std::io; #[derive(Debug)] pub enum Error { Io(io::Error), } impl From<io::Error> for Error { fn from(err: io::Error) -> Self { Error::Io(err) } }
1 2 3 4 5 6 7 8 9 10 11 12
use std::io; #[derive(Debug)] pub enum Error { Io(io::Error), } impl From<io::Error> for Error { fn from(err: io::Error) -> Self { Error::Io(err) } }