aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_api
diff options
context:
space:
mode:
authorYoshua Wuyts <[email protected]>2021-02-05 15:57:26 +0000
committerYoshua Wuyts <[email protected]>2021-02-05 15:57:26 +0000
commit79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (patch)
treee996c0d19a90a51704d201e935f519b22644256e /crates/proc_macro_api
parentae7bee70a10d01f0fdebfc12c70aca4f765826b3 (diff)
Remove redundant clones
Diffstat (limited to 'crates/proc_macro_api')
-rw-r--r--crates/proc_macro_api/src/rpc.rs2
1 files changed, 1 insertions, 1 deletions
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 {
262 262
263 assert_eq!(task.macro_body, back.macro_body); 263 assert_eq!(task.macro_body, back.macro_body);
264 264
265 let result = ExpansionResult { expansion: tt.clone() }; 265 let result = ExpansionResult { expansion: tt };
266 let json = serde_json::to_string(&result).unwrap(); 266 let json = serde_json::to_string(&result).unwrap();
267 let back: ExpansionResult = serde_json::from_str(&json).unwrap(); 267 let back: ExpansionResult = serde_json::from_str(&json).unwrap();
268 268