Skip to content

Commit 44e6de7

Browse files
Rollup merge of rust-lang#88849 - matthiaskrgr:clony_on_copy, r=petrochenkov
don't clone types that are Copy (clippy::clone_on_copy)
2 parents 6734911 + 7408da7 commit 44e6de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/formatters/junit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
5353
// Because the testsuit node holds some of the information as attributes, we can't write it
5454
// until all of the tests has ran. Instead of writting every result as they come in, we add
5555
// them to a Vec and write them all at once when run is complete.
56-
let duration = exec_time.map(|t| t.0.clone()).unwrap_or_default();
56+
let duration = exec_time.map(|t| t.0).unwrap_or_default();
5757
self.results.push((desc.clone(), result.clone(), duration));
5858
Ok(())
5959
}

0 commit comments

Comments
 (0)