From 604ba3ff90570ebcb9fd7fb06b4390596b47b1e3 Mon Sep 17 00:00:00 2001 From: martin frances Date: Sun, 12 Mar 2023 18:52:13 +0000 Subject: [PATCH] clippy: signal_wrappers_read, was using .clone() when copy is available. (#665) --- leptos_reactive/src/signal_wrappers_read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leptos_reactive/src/signal_wrappers_read.rs b/leptos_reactive/src/signal_wrappers_read.rs index 378924e8f..af150500a 100644 --- a/leptos_reactive/src/signal_wrappers_read.rs +++ b/leptos_reactive/src/signal_wrappers_read.rs @@ -520,7 +520,7 @@ impl Clone for MaybeSignal { 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), } } }