File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ pub fn check(path: &path::Path, bad: &mut bool) {
8787 // Library features
8888
8989 let lang_features = collect_lang_features ( path) ;
90- let lib_features = collect_lib_features ( path) . iter ( ) . filter ( |( name, _) {
90+ let lib_features = collect_lib_features ( path) . into_iter ( ) . filter ( |& ( ref name, _) | {
9191 !lang_features. contains_key ( name)
9292 } ) . collect ( ) ;
9393
Original file line number Diff line number Diff line change @@ -129,11 +129,9 @@ fn main() {
129129 let dest_path = Path :: new ( & dest_path_str) . join ( "src" ) ;
130130
131131 let lang_features = collect_lang_features ( src_path) ;
132- let lib_features = collect_lib_features ( src_path)
133- . iter ( )
134- . filter ( |( name, _) {
135- !lang_features. contains_key ( name)
136- } ) . collect ( ) ;
132+ let lib_features = collect_lib_features ( src_path) . into_iter ( ) . filter ( |& ( ref name, _) | {
133+ !lang_features. contains_key ( name)
134+ } ) . collect ( ) ;
137135
138136 let doc_src_path = src_path. join ( PATH_STR ) ;
139137
You can’t perform that action at this time.
0 commit comments