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-01-16 13:52:08 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-01-18 10:42:37 +1100
commit99797bbd9fdb138dd59a782f156db8397d07943c (patch)
tree628788d713a0b0a2fba7bf19acfb3828bb251764 /tests/coverage/coroutine.rs
parent1f9353ae2ca81b0a508e38751b0d3ab213526f56 (diff)
downloadrust-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.rs')
-rw-r--r--tests/coverage/coroutine.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/coverage/coroutine.rs b/tests/coverage/coroutine.rs
index 86d19af6f4f..2aa689466fc 100644
--- a/tests/coverage/coroutine.rs
+++ b/tests/coverage/coroutine.rs
@@ -9,7 +9,11 @@ use std::pin::Pin;
 // drop all `Counter` `Coverage` statements from a MIR. `simplify.rs` has logic
 // to handle this condition, and still report dead block coverage.
 fn get_u32(val: bool) -> Result<u32, String> {
-    if val { Ok(1) } else { Err(String::from("some error")) }
+    if val {
+        Ok(1)
+    } else {
+        Err(String::from("some error"))
+    }
 }
 
 fn main() {