diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-01-16 13:52:08 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-01-18 10:42:37 +1100 |
| commit | 99797bbd9fdb138dd59a782f156db8397d07943c (patch) | |
| tree | 628788d713a0b0a2fba7bf19acfb3828bb251764 /tests/coverage/coroutine.coverage | |
| parent | 1f9353ae2ca81b0a508e38751b0d3ab213526f56 (diff) | |
| download | rust-99797bbd9fdb138dd59a782f156db8397d07943c.tar.gz rust-99797bbd9fdb138dd59a782f156db8397d07943c.zip | |
coverage: Format all remaining tests
These tests can simply be reformatted as normal, because the resulting changes are unimportant.
Diffstat (limited to 'tests/coverage/coroutine.coverage')
| -rw-r--r-- | tests/coverage/coroutine.coverage | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/coverage/coroutine.coverage b/tests/coverage/coroutine.coverage index 3a9791a0dbd..bd3d4e46880 100644 --- a/tests/coverage/coroutine.coverage +++ b/tests/coverage/coroutine.coverage @@ -9,8 +9,11 @@ LL| |// drop all `Counter` `Coverage` statements from a MIR. `simplify.rs` has logic 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 { Ok(1) } else { Err(String::from("some error")) } - ^0 + LL| 1| if val { + LL| 1| Ok(1) + LL| | } else { + LL| 0| Err(String::from("some error")) + LL| | } LL| 1|} LL| | LL| 1|fn main() { |
