mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-21 11:00:26 +00:00
Remove redundant clones
This commit is contained in:
parent
ae7bee70a1
commit
79d103d5b4
7 changed files with 8 additions and 17 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue