1 2 3 4 5 6 7 8 9 10 11
use std::io::Error;
use crate::{VosError, VosErrorKind};
impl From<Error> for VosError {
fn from(e: Error) -> Self {
Self {
kind: Box::new(VosErrorKind::IOError(e))
}
}
}1 2 3 4 5 6 7 8 9 10 11
use std::io::Error;
use crate::{VosError, VosErrorKind};
impl From<Error> for VosError {
fn from(e: Error) -> Self {
Self {
kind: Box::new(VosErrorKind::IOError(e))
}
}
}