From 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Fri, 5 Feb 2021 16:57:26 +0100 Subject: Remove redundant clones --- crates/proc_macro_api/src/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/proc_macro_api') diff --git a/crates/proc_macro_api/src/rpc.rs b/crates/proc_macro_api/src/rpc.rs index cf830b59f..64cfdafc5 100644 --- a/crates/proc_macro_api/src/rpc.rs +++ b/crates/proc_macro_api/src/rpc.rs @@ -262,7 +262,7 @@ mod tests { assert_eq!(task.macro_body, back.macro_body); - let result = ExpansionResult { expansion: tt.clone() }; + let result = ExpansionResult { expansion: tt }; let json = serde_json::to_string(&result).unwrap(); let back: ExpansionResult = serde_json::from_str(&json).unwrap(); -- cgit v1.2.3