Skip to content

Commit

Permalink
Derive the Default and Debug for the allocator.
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm committed Apr 29, 2024
1 parent bf2b3a6 commit a313f04
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 a313f04

Please sign in to comment.