idmix/err.rs
1use std::fmt;
2
3pub struct MixError{
4 pub(crate) msg:String
5}
6impl fmt::Display for MixError{
7 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
8 write!(f, "{}", self.msg)
9 }
10}
11impl fmt::Debug for MixError {
12 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
13 write!(f, "{}", self.msg)
14 }
15
16}