Skip to content

Commit d9f3c69

Browse files
bchaliosShadowCurse
authored andcommitted
id_allocator: mark it Clone
It can be trivially cloned and we need it for handling Firecracker snapshots. Signed-off-by: Babis Chalios <[email protected]>
1 parent 92c8357 commit d9f3c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/id_allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::collections::BTreeSet;
1717
// BTreeSet is that the average complexity for deletion and insertion is
1818
// O(logN) compared to Vec for example, another benefit is that the entries
1919
// are sorted so we will always use the first available ID.
20-
#[derive(Debug)]
20+
#[derive(Debug, Clone)]
2121
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
2222
pub struct IdAllocator {
2323
// Beginning of the range of IDs that we want to manage.

0 commit comments

Comments
 (0)