From 739f4ac0d1997025e2284e0a7e70e28dd9597aff Mon Sep 17 00:00:00 2001 From: ranger-ross Date: Sat, 19 Oct 2024 19:39:35 +0900 Subject: [PATCH] Derive Copy+Hash for IntErrorKind --- library/core/src/num/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/num/error.rs b/library/core/src/num/error.rs index 6ef2fdd14c149..a5242d60bf14d 100644 --- a/library/core/src/num/error.rs +++ b/library/core/src/num/error.rs @@ -79,7 +79,7 @@ pub struct ParseIntError { /// # } /// ``` #[stable(feature = "int_error_matching", since = "1.55.0")] -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq, Eq, Copy, Hash)] #[non_exhaustive] pub enum IntErrorKind { /// Value being parsed is empty.