File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -709,10 +709,7 @@ impl Config {
709709 "reanalyze" ,
710710 ] ;
711711
712- let top_level = field
713- . split ( |c| [ '.' , '[' ] . contains ( & c) )
714- . next ( )
715- . unwrap_or ( field) ;
712+ let top_level = field. split ( |c| [ '.' , '[' ] . contains ( & c) ) . next ( ) . unwrap_or ( field) ;
716713
717714 UNSUPPORTED_TOP_LEVEL_FIELDS . contains ( & top_level)
718715 }
@@ -1111,10 +1108,7 @@ pub mod tests {
11111108 "# ;
11121109
11131110 let config = Config :: new_from_json_string ( json) . expect ( "a valid json string" ) ;
1114- assert_eq ! (
1115- config. get_unsupported_fields( ) ,
1116- vec![ "ignored-dirs" . to_string( ) ]
1117- ) ;
1111+ assert_eq ! ( config. get_unsupported_fields( ) , vec![ "ignored-dirs" . to_string( ) ] ) ;
11181112 assert ! ( config. get_unknown_fields( ) . is_empty( ) ) ;
11191113 }
11201114
You can’t perform that action at this time.
0 commit comments