1 2 3 4 5 6 7 8 9 10 11
use std::fmt::{Display, Formatter}; #[derive(Debug)] pub struct ProconError { pub message: String, } impl Display for ProconError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.message) } }