From e1f88b114564f070dfbf9a9a1682e5e5e1c83a42 Mon Sep 17 00:00:00 2001 From: Tessa Pierce Ward Date: Mon, 7 Oct 2024 18:29:47 -0700 Subject: [PATCH] MRG: derive Hash for `HashFunctions` (#3344) - derive Hash for HashFunctions, so I can use it over in https://github.com/sourmash-bio/sourmash_plugin_directsketch/pull/112 --- src/core/src/encodings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/src/encodings.rs b/src/core/src/encodings.rs index 733831e49..8375699cb 100644 --- a/src/core/src/encodings.rs +++ b/src/core/src/encodings.rs @@ -20,7 +20,7 @@ pub type Idx = u32; type IdxTracker = (vec_collections::VecSet<[Idx; 8]>, u64); type ColorToIdx = HashMap>; -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone, PartialEq, Eq, Hash)] #[cfg_attr( feature = "rkyv", derive(rkyv::Serialize, rkyv::Deserialize, rkyv::Archive)