diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-09-11 10:18:56 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-09-11 10:18:56 +0200 |
| commit | c1e96085d36af614ac9bb1c36dde9a5706eef6ec (patch) | |
| tree | e7d6ffbd044166109bab8167a329bd51094c280c /library/test/src/formatters | |
| parent | 22719efcc570b043f2e519d6025e5f36eab38fe2 (diff) | |
don't clone types that are Copy (clippy::clone_on_copy)
Diffstat (limited to 'library/test/src/formatters')
| -rw-r--r-- | library/test/src/formatters/junit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index c4b0e1e5c23..aa244807514 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -53,7 +53,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> { // Because the testsuit node holds some of the information as attributes, we can't write it // until all of the tests has ran. Instead of writting every result as they come in, we add // them to a Vec and write them all at once when run is complete. - let duration = exec_time.map(|t| t.0.clone()).unwrap_or_default(); + let duration = exec_time.map(|t| t.0).unwrap_or_default(); self.results.push((desc.clone(), result.clone(), duration)); Ok(()) } |
