diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index 58557cd..06b023c 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -91,6 +91,14 @@ pub enum Error { InvalidCharacter, } +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { + match self { + Error::InvalidCharacter => write!(f, "Invalid character"), + } + } +} + #[derive(Debug, Clone, Eq, PartialEq)] pub struct PKString(String);