From 8f9c10f5d0703dbe8145a1da87805e7b035454fe Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Sat, 23 Sep 2023 21:11:56 +0200 Subject: [PATCH] Derive `Eq` and `Hash` for `Locale` --- generate-api/src/generator.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generate-api/src/generator.rs b/generate-api/src/generator.rs index 466e6ac..bbe0e71 100644 --- a/generate-api/src/generator.rs +++ b/generate-api/src/generator.rs @@ -501,7 +501,7 @@ impl CodeGenerator { /// License note: The Free Software Foundation does not claim any copyright interest in the locale /// data of the GNU C Library; they believe it is not copyrightable. #[allow(non_camel_case_types,dead_code)] - #[derive(Copy, Clone, Default, PartialEq)] + #[derive(Copy, Clone, Default, PartialEq, Eq, Hash)] pub enum Locale {{ "#, )?; diff --git a/src/lib.rs b/src/lib.rs index d890368..fcb96c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c187a8d88ba7dce6ffc967f9a0aaf66a7ac24aaff98be85ba6f7888931c4e305 -size 2446616 +oid sha256:e06dc42faeb0377d6a129a7935399539154746fe9b24202a99fe7d828e96dbb5 +size 2473422