From 43d174b891f5c9472b3604e58ea262619edfc933 Mon Sep 17 00:00:00 2001 From: Dom Dwyer Date: Thu, 16 Mar 2023 11:55:01 +0100 Subject: [PATCH] refactor: remove Clone derive on CompletedPersist This type is exposed as an Arc-wrapped (reference counted) shared item to avoid cloning the underlying data, and as such this type should not be cloned directly. --- ingester2/src/persist/completion_observer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingester2/src/persist/completion_observer.rs b/ingester2/src/persist/completion_observer.rs index 762df271cc..46fa9e6a44 100644 --- a/ingester2/src/persist/completion_observer.rs +++ b/ingester2/src/persist/completion_observer.rs @@ -22,7 +22,7 @@ pub(crate) trait PersistCompletionObserver: Send + Sync + Debug { } /// A set of details describing the persisted data. -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct CompletedPersist { /// The catalog identifiers for the persisted partition. namespace_id: NamespaceId,