From 25821d1b8b99664e72a17291c18fc2896ebfd97e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 6 Dec 2023 14:29:05 +0100 Subject: [PATCH] Derive `Hash` for `Feature` --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index 78605e01..8c4689bd 100644 --- a/src/common.rs +++ b/src/common.rs @@ -451,7 +451,7 @@ pub mod script { /// `shape`s input it should be applied. #[repr(C)] #[allow(missing_docs)] -#[derive(Clone, Copy, PartialEq, Debug)] +#[derive(Clone, Copy, PartialEq, Hash, Debug)] pub struct Feature { pub tag: Tag, pub value: u32,