about summary refs log tree commit diff
path: root/tests/run-coverage/closure.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-08-17 11:43:10 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-08-26 14:35:34 +1000
commit8d91e71e9a015c864b29725ec9430c5db4325cf4 (patch)
tree91d68de6a9e84af78becfacc8a64bf8956b8be97 /tests/run-coverage/closure.rs
parent4da38c31d21347fe7800c4263cb34a8c9e62d0fb (diff)
downloadrust-8d91e71e9a015c864b29725ec9430c5db4325cf4.tar.gz
rust-8d91e71e9a015c864b29725ec9430c5db4325cf4.zip
Various trivial formatting fixes in `run-coverage` tests
These changes were made by manually running `rustfmt` on all of the test files,
and then manually undoing all cases where the original formatting appeared to
have been deliberate.

  `rustfmt +nightly --config-path=/dev/null --edition=2021 tests/run-coverage*/**/*.rs`
Diffstat (limited to 'tests/run-coverage/closure.rs')
-rw-r--r--tests/run-coverage/closure.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-coverage/closure.rs b/tests/run-coverage/closure.rs
index 7c42458ae1b..16a2c4e33bd 100644
--- a/tests/run-coverage/closure.rs
+++ b/tests/run-coverage/closure.rs
@@ -10,7 +10,7 @@ fn main() {
     // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
     // dependent conditions.
     let is_true = std::env::args().len() == 1;
-    let is_false = ! is_true;
+    let is_false = !is_true;
 
     let mut some_string = Some(String::from("the string content"));
     println!(