From 8f7a9e8f0d156878df9601349eaab4beaa47e5b0 Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Wed, 15 Sep 2021 15:57:31 -0500 Subject: [PATCH] add more traits while we can --- bucket_map/src/bucket_map.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket_map/src/bucket_map.rs b/bucket_map/src/bucket_map.rs index f86150b335..e35d1b7071 100644 --- a/bucket_map/src/bucket_map.rs +++ b/bucket_map/src/bucket_map.rs @@ -15,13 +15,14 @@ use tempfile::TempDir; pub type MaxSearch = u8; pub type RefCount = u64; +#[derive(Debug, Default, Clone)] pub struct BucketMapKeyValue { pub pubkey: Pubkey, pub ref_count: RefCount, pub slot_list: Vec, } -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct BucketMapConfig { pub max_buckets: usize, pub drives: Option>,