about summary refs log tree commit diff
path: root/tests/coverage/partial_eq.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-05-29 14:27:57 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-05-29 14:34:17 +1000
commit9dc6e082791fe0f3116c34a922de75947883644c (patch)
treec6d658d26e26531e91ddc9c524da8f5f29c02444 /tests/coverage/partial_eq.rs
parent448d63e9469c293c3855867d29cbff210691db92 (diff)
downloadrust-9dc6e082791fe0f3116c34a922de75947883644c.tar.gz
rust-9dc6e082791fe0f3116c34a922de75947883644c.zip
Manually run `x fmt` on all source files in `tests/coverage/`
Currently we can't automatically enforce formatting on tests (see #125637), but
we can at least keep things relatively tidy by occasionally running the
formatter manually.

This was done by temporarily commenting out the `"/tests/"` exclusion in
`rustfmt.toml`, and then running `x fmt tests/coverage` and
`x test coverage --bless`.
Diffstat (limited to 'tests/coverage/partial_eq.rs')
-rw-r--r--tests/coverage/partial_eq.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/coverage/partial_eq.rs b/tests/coverage/partial_eq.rs
index 0e96dc2b685..081502d4a9d 100644
--- a/tests/coverage/partial_eq.rs
+++ b/tests/coverage/partial_eq.rs
@@ -10,11 +10,7 @@ pub struct Version {
 
 impl Version {
     pub fn new(major: usize, minor: usize, patch: usize) -> Self {
-        Self {
-            major,
-            minor,
-            patch,
-        }
+        Self { major, minor, patch }
     }
 }