File tree 1 file changed +5
-5
lines changed
src/tools/features-status-dump/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
use std:: collections:: HashMap ;
2
+ use std:: env;
3
+ use std:: fs:: File ;
2
4
use std:: io:: BufWriter ;
3
- use std:: { env, fs:: File } ;
4
5
use std:: path:: Path ;
5
- use tidy:: features:: { collect_lang_features, collect_lib_features, Feature } ;
6
+
7
+ use tidy:: features:: { Feature , collect_lang_features, collect_lib_features} ;
6
8
7
9
#[ derive( serde:: Serialize ) ]
8
10
struct FeaturesStatus {
@@ -22,9 +24,7 @@ fn main() {
22
24
. into_iter ( )
23
25
. filter ( |& ( ref name, _) | !lang_features_status. contains_key ( name) )
24
26
. collect ( ) ;
25
- let features_status = FeaturesStatus {
26
- lang_features_status, lib_features_status
27
- } ;
27
+ let features_status = FeaturesStatus { lang_features_status, lib_features_status } ;
28
28
let writer = File :: create ( output_path) . expect ( "output path should be a valid path" ) ;
29
29
let writer = BufWriter :: new ( writer) ;
30
30
serde_json:: to_writer_pretty ( writer, & features_status) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments