1use std::error::Error; 2 3pub fn io_err_to_box_err(e: std::io::Error) -> Box<dyn Error + Send> { 4 Box::new(e) 5}