From f102125d3cbed14f9420e0d46ba3f8e38b64abca Mon Sep 17 00:00:00 2001 From: Joseph Cruz Date: Tue, 18 Jul 2023 20:11:36 -0400 Subject: [PATCH] fix: needless_borrow --- leptos_reactive/src/serialization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leptos_reactive/src/serialization.rs b/leptos_reactive/src/serialization.rs index a0ebd4422..97b000f26 100644 --- a/leptos_reactive/src/serialization.rs +++ b/leptos_reactive/src/serialization.rs @@ -95,7 +95,7 @@ cfg_if! { fn de(json: &str) -> Result { let intermediate = - serde_json::from_str(&json).map_err(|e| SerializationError::Deserialize(Rc::new(e)))?; + serde_json::from_str(json).map_err(|e| SerializationError::Deserialize(Rc::new(e)))?; Self::deserialize(&intermediate).map_err(|e| SerializationError::Deserialize(Rc::new(e))) } }