Skip to content

Commit a313f04

Browse files
committed
Derive the Default and Debug for the allocator.
1 parent bf2b3a6 commit a313f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const REDIS_ALLOCATOR_NOT_AVAILABLE_MESSAGE: &str =
2222
/// Defines the Redis allocator. This allocator delegates the allocation
2323
/// and deallocation tasks to the Redis server when available, otherwise
2424
/// it panics.
25-
#[derive(Copy, Clone)]
25+
#[derive(Default, Debug, Copy, Clone)]
2626
pub struct RedisAlloc;
2727

2828
unsafe impl GlobalAlloc for RedisAlloc {

0 commit comments

Comments
 (0)