Skip to content

Commit 713c930

Browse files
authored
Merge pull request #385 from RedisLabsModules/improve-redis-allocator
Derive the Default and Debug for the allocator.
2 parents bf2b3a6 + a313f04 commit 713c930

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)