From 733b511b28c3cffdc4df1e71f71371c6c9037c45 Mon Sep 17 00:00:00 2001 From: Alan Hanson Date: Thu, 7 Nov 2024 09:43:57 -0800 Subject: [PATCH] No clone needed --- upstairs/src/volume.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upstairs/src/volume.rs b/upstairs/src/volume.rs index f61f3f530..43520a315 100644 --- a/upstairs/src/volume.rs +++ b/upstairs/src/volume.rs @@ -39,7 +39,7 @@ fn build_region_definition( } // Result of comparing two [`VolumeConstructionRequest::Region`] values -#[derive(Debug, Clone)] +#[derive(Debug)] enum VCRDelta { /// The Regions are identical. Same, @@ -50,7 +50,7 @@ enum VCRDelta { } // Result of comparing two [`VolumeConstructionRequest::Volume`] values -#[derive(Debug, Clone)] +#[derive(Debug)] enum CompareResult { Volume { sub_compares: Vec, @@ -1601,7 +1601,7 @@ impl Volume { read_only_parent_compare, }; - Ok(sv_res.clone()) + Ok(sv_res) } (