Derive Copy trait for ScabbardVersion
This enum can be `Copy` because it is a basic enum with no encapsulated
data.
@@ -65,7 +65,7 @@ const SERVICE_TYPE: &str = "scabbard";
const DEFAULT_COORDINATOR_TIMEOUT: u64 = 30; // 30 seconds
/// Specifies the version of scabbard to use.
-#[derive(Clone)]
+#[derive(Clone, Copy)]
pub enum ScabbardVersion {
V1,
V2,
@@ -315,7 +315,7 @@ impl Service for Scabbard {
consensus.replace(
ScabbardConsensusManager::new(
self.service_id().into(),
- self.version.clone(),
+ self.version,
self.shared.clone(),
self.state.clone(),
self.coordinator_timeout,
