diff options
author | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
---|---|---|
committer | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
commit | 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (patch) | |
tree | e996c0d19a90a51704d201e935f519b22644256e /crates/proc_macro_api | |
parent | ae7bee70a10d01f0fdebfc12c70aca4f765826b3 (diff) |
Remove redundant clones
Diffstat (limited to 'crates/proc_macro_api')
-rw-r--r-- | crates/proc_macro_api/src/rpc.rs | 2 |
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 | ||