From a313f04ade3f9cc7fdfac7836fc723e7fd2bc100 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Mon, 29 Apr 2024 13:02:30 +0200 Subject: [PATCH] Derive the Default and Debug for the allocator. --- src/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alloc.rs b/src/alloc.rs index 1744e94f..a5ed23d2 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(Copy, Clone)] +#[derive(Default, Debug, Copy, Clone)] pub struct RedisAlloc; unsafe impl GlobalAlloc for RedisAlloc {