Skip to content

Commit

Permalink
Merge pull request #385 from RedisLabsModules/improve-redis-allocator
Browse files Browse the repository at this point in the history
Derive the Default and Debug for the allocator.
  • Loading branch information
iddm authored Apr 29, 2024
2 parents bf2b3a6 + a313f04 commit 713c930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 713c930

Please sign in to comment.