File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 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 {
467467#[ cfg( test) ]
468468mod tests {
469469 use super :: * ;
470+ use crate :: Config ;
470471 use crate :: File ;
471472 use crate :: FileFormat ;
472- use crate :: Config ;
473-
474473
475474 #[ derive( Deserialize ) ]
476475 struct CFG {
@@ -490,7 +489,8 @@ mod tests {
490489 "# ;
491490
492491 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 ( ) ;
494494 let c: CFG = c. try_into ( ) . unwrap ( ) ;
495495 }
496496 #[ test]
@@ -500,7 +500,8 @@ mod tests {
500500 "# ;
501501
502502 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 ( ) ;
504505 let c: CFG = c. try_into ( ) . unwrap ( ) ;
505506 }
506507
@@ -512,8 +513,8 @@ mod tests {
512513 "# ;
513514
514515 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 ( ) ;
516518 let c: CFG = c. try_into ( ) . unwrap ( ) ;
517519 }
518-
519520}
You can’t perform that action at this time.
0 commit comments