@@ -100,18 +100,17 @@ mod debug_struct {
100100
101101 impl fmt:: Debug for Foo {
102102 fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
103- fmt. debug_struct ( "Foo" )
104- . finish_non_exhaustive ( )
103+ fmt. debug_struct ( "Foo" ) . finish_non_exhaustive ( )
105104 }
106105 }
107106
108-
109107 assert_eq ! ( "Foo { .. }" , format!( "{:?}" , Foo ) ) ;
110108 assert_eq ! (
111- "Foo {
109+ "Foo {
112110 ..
113111}" ,
114- format!( "{:#?}" , Foo ) ) ;
112+ format!( "{:#?}" , Foo )
113+ ) ;
115114 }
116115
117116 #[ test]
@@ -129,12 +128,13 @@ mod debug_struct {
129128
130129 assert_eq ! ( "Foo { bar: true, baz: 10/20, .. }" , format!( "{:?}" , Foo ) ) ;
131130 assert_eq ! (
132- "Foo {
131+ "Foo {
133132 bar: true,
134133 baz: 10/20,
135134 ..
136135}" ,
137- format!( "{:#?}" , Foo ) ) ;
136+ format!( "{:#?}" , Foo )
137+ ) ;
138138 }
139139
140140 #[ test]
@@ -161,10 +161,12 @@ mod debug_struct {
161161 }
162162 }
163163
164- assert_eq ! ( "Bar { foo: Foo { bar: true, baz: 10/20, .. }, hello: \" world\" , .. }" ,
165- format!( "{:?}" , Bar ) ) ;
166164 assert_eq ! (
167- "Bar {
165+ "Bar { foo: Foo { bar: true, baz: 10/20, .. }, hello: \" world\" , .. }" ,
166+ format!( "{:?}" , Bar )
167+ ) ;
168+ assert_eq ! (
169+ "Bar {
168170 foo: Foo {
169171 bar: true,
170172 baz: 10/20,
@@ -173,9 +175,9 @@ mod debug_struct {
173175 hello: \" world\" ,
174176 ..
175177}" ,
176- format!( "{:#?}" , Bar ) ) ;
178+ format!( "{:#?}" , Bar )
179+ ) ;
177180 }
178-
179181}
180182
181183mod debug_tuple {
0 commit comments