From c9b4ac5be4daaabc062ab1ee663eba8594750003 Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:24:16 +0530 Subject: clippy::redudant_borrow --- crates/proc_macro_api/src/msg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/proc_macro_api/src') diff --git a/crates/proc_macro_api/src/msg.rs b/crates/proc_macro_api/src/msg.rs index 14eed4289..899895578 100644 --- a/crates/proc_macro_api/src/msg.rs +++ b/crates/proc_macro_api/src/msg.rs @@ -59,7 +59,7 @@ pub trait Message: Serialize + DeserializeOwned { Ok(match read_json(inp, buf)? { None => None, Some(text) => { - let mut deserializer = serde_json::Deserializer::from_str(&text); + let mut deserializer = serde_json::Deserializer::from_str(text); // Note that some proc-macro generate very deep syntax tree // We have to disable the current limit of serde here deserializer.disable_recursion_limit(); -- cgit v1.2.3