about summary refs log tree commit diff
path: root/src/libcore/tests
diff options
context:
space:
mode:
authorRichard Dodd <richard.o.dodd@gmail.com>2020-01-16 20:11:16 +0000
committerRichard Dodd <richard.o.dodd@gmail.com>2020-01-16 20:11:16 +0000
commit73124df6eba9d81affb3ef597fdaeb4fce82f7af (patch)
tree85f6a20f085ec61254bd0958c5f0fa3ade3dbef2 /src/libcore/tests
parent9864ec499ffe5621c1da47150adcfaf606ec76a4 (diff)
downloadrust-73124df6eba9d81affb3ef597fdaeb4fce82f7af.tar.gz
rust-73124df6eba9d81affb3ef597fdaeb4fce82f7af.zip
Rust ./x.py fmt
Diffstat (limited to 'src/libcore/tests')
-rw-r--r--src/libcore/tests/fmt/builders.rs26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/libcore/tests/fmt/builders.rs b/src/libcore/tests/fmt/builders.rs
index d8ec6764bc6..129c121e8ce 100644
--- a/src/libcore/tests/fmt/builders.rs
+++ b/src/libcore/tests/fmt/builders.rs
@@ -100,18 +100,17 @@ mod debug_struct {
 
         impl fmt::Debug for Foo {
             fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
-                fmt.debug_struct("Foo")
-                    .finish_non_exhaustive()
+                fmt.debug_struct("Foo").finish_non_exhaustive()
             }
         }
 
-
         assert_eq!("Foo { .. }", format!("{:?}", Foo));
         assert_eq!(
-"Foo {
+            "Foo {
     ..
 }",
-                   format!("{:#?}", Foo));
+            format!("{:#?}", Foo)
+        );
     }
 
     #[test]
@@ -129,12 +128,13 @@ mod debug_struct {
 
         assert_eq!("Foo { bar: true, baz: 10/20, .. }", format!("{:?}", Foo));
         assert_eq!(
-"Foo {
+            "Foo {
     bar: true,
     baz: 10/20,
     ..
 }",
-                   format!("{:#?}", Foo));
+            format!("{:#?}", Foo)
+        );
     }
 
     #[test]
@@ -161,10 +161,12 @@ mod debug_struct {
             }
         }
 
-        assert_eq!("Bar { foo: Foo { bar: true, baz: 10/20, .. }, hello: \"world\", .. }",
-                   format!("{:?}", Bar));
         assert_eq!(
-"Bar {
+            "Bar { foo: Foo { bar: true, baz: 10/20, .. }, hello: \"world\", .. }",
+            format!("{:?}", Bar)
+        );
+        assert_eq!(
+            "Bar {
     foo: Foo {
         bar: true,
         baz: 10/20,
@@ -173,9 +175,9 @@ mod debug_struct {
     hello: \"world\",
     ..
 }",
-                   format!("{:#?}", Bar));
+            format!("{:#?}", Bar)
+        );
     }
-
 }
 
 mod debug_tuple {