From 2acc5cf5846d3d71036b25c0e098a90ff24f5e78 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Thu, 25 Jul 2024 12:13:32 +0200 Subject: [PATCH] Derive hash and comparison traits for RedisAlloc --- src/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.rs b/src/alloc.rs index a5ed23d2..8a468db2 100644 --- a/src/alloc.rs +++ b/src/alloc.rs @@ -22,7 +22,7 @@ const REDIS_ALLOCATOR_NOT_AVAILABLE_MESSAGE: &str = /// Defines the Redis allocator. This allocator delegates the allocation /// and deallocation tasks to the Redis server when available, otherwise /// it panics. -#[derive(Default, Debug, Copy, Clone)] +#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct RedisAlloc; unsafe impl GlobalAlloc for RedisAlloc {