Remove redundant clones

This commit is contained in:
Yoshua Wuyts 2021-02-05 16:57:26 +01:00
parent ae7bee70a1
commit 79d103d5b4
7 changed files with 8 additions and 17 deletions

View file

@ -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();