Skip to content

Commit 2936558

Browse files
committed
Derive clone instead of explicit impl.
1 parent e567cc4 commit 2936558

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

timeboost-types/src/decryption.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl ThresholdKey {
131131

132132
/// `DecryptionKeyCell` is a thread-safe container for an optional `DecryptionKey`
133133
/// that allows asynchronous notification when the key is set.
134-
#[derive(Debug, Default)]
134+
#[derive(Clone, Debug, Default)]
135135
pub struct ThresholdKeyCell {
136136
inner: Arc<ThresholdKeyCellInner>,
137137
}
@@ -175,14 +175,6 @@ impl ThresholdKeyCell {
175175
}
176176
}
177177

178-
impl Clone for ThresholdKeyCell {
179-
fn clone(&self) -> Self {
180-
Self {
181-
inner: self.inner.clone(),
182-
}
183-
}
184-
}
185-
186178
/// A small, non-empty collection of KeyStores.
187179
#[derive(Debug, Default, Clone)]
188180
#[allow(clippy::len_without_is_empty)]

0 commit comments

Comments
 (0)