Skip to content

Commit 1d6793b

Browse files
tormolThomas Bahn
authored and
Thomas Bahn
committed
Implement Clone, Copy and Eq for ToAsciiCharError
1 parent 509c167 commit 1d6793b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ascii_char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ impl_into_partial_eq_ord!{char, AsciiChar::as_char}
619619

620620

621621
/// Error returned by `ToAsciiChar`.
622-
#[derive(PartialEq)]
622+
#[derive(Clone, Copy, PartialEq, Eq)]
623623
pub struct ToAsciiCharError(());
624624

625625
const ERRORMSG_CHAR: &'static str = "not an ASCII character";

0 commit comments

Comments
 (0)