mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-08-13 13:10:48 -04:00
improvement: make hexsearch structs sortable
This commit is contained in:
@@ -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<u8>),
|
||||
|
Reference in New Issue
Block a user