mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-23 00:45:52 -05:00
improvement: make hexsearch structs sortable
This commit is contained in:
parent
e8557d421b
commit
7a4c9266ec
|
@ -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>),
|
||||
|
|
Loading…
Reference in New Issue
Block a user