1 2 3 4 5 6 7 8
use core::fmt; use thiserror::Error; #[derive(Error, Debug)] pub enum CorrError { #[error("write macro throws error")] WritError(#[from] fmt::Error), }