diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-29 14:06:53 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-05-29 14:34:11 +1000 |
| commit | 448d63e9469c293c3855867d29cbff210691db92 (patch) | |
| tree | 303ec93e0c1d78572190bd9549bc0d4a626c7eea /tests/coverage/coroutine.coverage | |
| parent | da159eb331b27df528185c616b394bb0e1d2a4bd (diff) | |
| download | rust-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.coverage')
| -rw-r--r-- | tests/coverage/coroutine.coverage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coverage/coroutine.coverage b/tests/coverage/coroutine.coverage index 68b52d19831..afe13b48ff6 100644 --- a/tests/coverage/coroutine.coverage +++ b/tests/coverage/coroutine.coverage @@ -10,9 +10,9 @@ LL| |// to handle this condition, and still report dead block coverage. LL| 1|fn get_u32(val: bool) -> Result<u32, String> { LL| 1| if val { - LL| 1| Ok(1) + LL| 1| Ok(1) // LL| | } else { - LL| 0| Err(String::from("some error")) + LL| 0| Err(String::from("some error")) // LL| | } LL| 1|} LL| | |
