about summary refs log tree commit diff
path: root/library/test/src/formatters
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-04 20:16:57 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-11-04 21:07:56 +0100
commit28ef4169ccc62f3f1a35b6b002c29ea9bc6b2334 (patch)
tree9fa3210bff41d8ad193f6cd48c14758c2f2f11a6 /library/test/src/formatters
parent4961b107f204e15b26961eab0685df6be3ab03c6 (diff)
clippy::perf fixes
Diffstat (limited to 'library/test/src/formatters')
-rw-r--r--library/test/src/formatters/junit.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs
index e2aebee916d..fa23cf26896 100644
--- a/library/test/src/formatters/junit.rs
+++ b/library/test/src/formatters/junit.rs
@@ -55,8 +55,8 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
         _stdout: &[u8],
         _state: &ConsoleTestState,
     ) -> io::Result<()> {
-        // 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
+        // Because the testsuite node holds some of the information as attributes, we can't write it
+        // until all of the tests have finished. Instead of writing 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).unwrap_or_default();
         self.results.push((desc.clone(), result.clone(), duration));