File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,17 @@ mod tests {
150150 #[ test]
151151 #[ allow( clippy:: assertions_on_constants) ]
152152 fn test_usage_within_a_function ( ) {
153- cfg_if ! { if #[ cfg( debug_assertions) ] {
154- // we want to put more than one thing here to make sure that they
155- // all get configured properly.
156- assert!( cfg!( debug_assertions) ) ;
157- assert_eq!( 4 , 2 +2 ) ;
158- } else {
159- assert!( works1( ) . is_some( ) ) ;
160- assert_eq!( 10 , 5 +5 ) ;
161- } }
153+ cfg_if ! {
154+ if #[ cfg( debug_assertions) ] {
155+ // we want to put more than one thing here to make sure that they
156+ // all get configured properly.
157+ assert!( cfg!( debug_assertions) ) ;
158+ assert_eq!( 4 , 2 + 2 ) ;
159+ } else {
160+ assert!( works1( ) . is_some( ) ) ;
161+ assert_eq!( 10 , 5 + 5 ) ;
162+ }
163+ }
162164 }
163165
164166 #[ allow( dead_code) ]
@@ -172,13 +174,9 @@ mod tests {
172174 impl Trait for Struct {
173175 cfg_if ! {
174176 if #[ cfg( feature = "blah" ) ] {
175- fn blah( & self ) {
176- unimplemented!( ) ;
177- }
177+ fn blah( & self ) { unimplemented!( ) ; }
178178 } else {
179- fn blah( & self ) {
180- unimplemented!( ) ;
181- }
179+ fn blah( & self ) { unimplemented!( ) ; }
182180 }
183181 }
184182 }
You can’t perform that action at this time.
0 commit comments