clippy: signal_wrappers_read, was using .clone() when copy is available. (#665)

This commit is contained in:
martin frances 2023-03-12 18:52:13 +00:00 committed by GitHub
parent 2e671887d9
commit 604ba3ff90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -520,7 +520,7 @@ impl<T: Clone> Clone for MaybeSignal<T> {
fn clone(&self) -> Self {
match self {
Self::Static(item) => Self::Static(item.clone()),
Self::Dynamic(signal) => Self::Dynamic(signal.clone()),
Self::Dynamic(signal) => Self::Dynamic(*signal),
}
}
}