File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -467,10 +467,9 @@ impl<'de> de::Deserializer<'de> for Config {
467
467
#[ cfg( test) ]
468
468
mod tests {
469
469
use super :: * ;
470
+ use crate :: Config ;
470
471
use crate :: File ;
471
472
use crate :: FileFormat ;
472
- use crate :: Config ;
473
-
474
473
475
474
#[ derive( Deserialize ) ]
476
475
struct CFG {
@@ -490,7 +489,8 @@ mod tests {
490
489
"# ;
491
490
492
491
let mut c = Config :: default ( ) ;
493
- c. merge ( File :: from_str ( working_config, FileFormat :: Toml ) ) . unwrap ( ) ;
492
+ c. merge ( File :: from_str ( working_config, FileFormat :: Toml ) )
493
+ . unwrap ( ) ;
494
494
let c: CFG = c. try_into ( ) . unwrap ( ) ;
495
495
}
496
496
#[ test]
@@ -500,7 +500,8 @@ mod tests {
500
500
"# ;
501
501
502
502
let mut c = Config :: default ( ) ;
503
- c. merge ( File :: from_str ( working_config, FileFormat :: Toml ) ) . unwrap ( ) ;
503
+ c. merge ( File :: from_str ( working_config, FileFormat :: Toml ) )
504
+ . unwrap ( ) ;
504
505
let c: CFG = c. try_into ( ) . unwrap ( ) ;
505
506
}
506
507
@@ -512,8 +513,8 @@ mod tests {
512
513
"# ;
513
514
514
515
let mut c = Config :: default ( ) ;
515
- c. merge ( File :: from_str ( panicing_config, FileFormat :: Toml ) ) . unwrap ( ) ;
516
+ c. merge ( File :: from_str ( panicing_config, FileFormat :: Toml ) )
517
+ . unwrap ( ) ;
516
518
let c: CFG = c. try_into ( ) . unwrap ( ) ;
517
519
}
518
-
519
520
}
You can’t perform that action at this time.
0 commit comments