diff --git a/src/ascii_char.rs b/src/ascii_char.rs index ecc410d..2921e69 100644 --- a/src/ascii_char.rs +++ b/src/ascii_char.rs @@ -619,7 +619,7 @@ impl_into_partial_eq_ord!{char, AsciiChar::as_char} /// Error returned by `ToAsciiChar`. -#[derive(PartialEq)] +#[derive(Clone, Copy, PartialEq, Eq)] pub struct ToAsciiCharError(()); const ERRORMSG_CHAR: &'static str = "not an ASCII character";