about summary refs log tree commit diff
path: root/tests/coverage/coroutine.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-05-29 14:06:53 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-05-29 14:34:11 +1000
commit448d63e9469c293c3855867d29cbff210691db92 (patch)
tree303ec93e0c1d78572190bd9549bc0d4a626c7eea /tests/coverage/coroutine.rs
parentda159eb331b27df528185c616b394bb0e1d2a4bd (diff)
downloadrust-448d63e9469c293c3855867d29cbff210691db92.tar.gz
rust-448d63e9469c293c3855867d29cbff210691db92.zip
Tweak various coverage test files for slightly nicer formatting
For coverage tests, splitting code across multiple lines often makes the
resulting coverage report easier to interpret, so we force rustfmt to retain
line breaks by adding dummy line comments with `//`.
Diffstat (limited to 'tests/coverage/coroutine.rs')
-rw-r--r--tests/coverage/coroutine.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coverage/coroutine.rs b/tests/coverage/coroutine.rs
index 7f72e0d8bd4..84d1b3304c5 100644
--- a/tests/coverage/coroutine.rs
+++ b/tests/coverage/coroutine.rs
@@ -10,9 +10,9 @@ use std::pin::Pin;
 // to handle this condition, and still report dead block coverage.
 fn get_u32(val: bool) -> Result<u32, String> {
     if val {
-        Ok(1)
+        Ok(1) //
     } else {
-        Err(String::from("some error"))
+        Err(String::from("some error")) //
     }
 }