From 7a4c9266ec105f14d8c0f3834306b120e83d99bd Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sat, 17 Dec 2022 07:49:05 -0600 Subject: [PATCH] improvement: make hexsearch structs sortable --- src/hexrange.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hexrange.rs b/src/hexrange.rs index db4eb23..e571778 100644 --- a/src/hexrange.rs +++ b/src/hexrange.rs @@ -3,7 +3,7 @@ use crate::utils::is_hex; use hex; /// Types of hexadecimal queries. -#[derive(PartialEq, Eq, Debug, Clone)] +#[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Clone)] pub enum HexSearch { // when no range is needed, exact 32-byte Exact(Vec),