File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ impl<'a> Gen<'a> {
303
303
304
304
let mut features = cfg_features ( cfg, self . namespace ) ;
305
305
if self . windows_extern {
306
- features = features . into_iter ( ) . filter ( |f| !f. starts_with ( "Windows." ) ) . collect ( ) ;
306
+ features. retain ( |f| !f. starts_with ( "Windows." ) ) ;
307
307
}
308
308
for features in features {
309
309
write ! ( tokens, r#", `\"{}\"`"# , to_feature( features) ) . unwrap ( ) ;
@@ -330,7 +330,7 @@ impl<'a> Gen<'a> {
330
330
331
331
let mut features = cfg_features ( cfg, self . namespace ) ;
332
332
if self . windows_extern {
333
- features = features . into_iter ( ) . filter ( |f| !f. starts_with ( "Windows." ) ) . collect ( ) ;
333
+ features. retain ( |f| !f. starts_with ( "Windows." ) ) ;
334
334
}
335
335
336
336
let features = match features. len ( ) {
@@ -355,7 +355,7 @@ impl<'a> Gen<'a> {
355
355
quote ! { }
356
356
} else {
357
357
if self . windows_extern {
358
- features = features . into_iter ( ) . filter ( |f| !f. starts_with ( "Windows." ) ) . collect ( ) ;
358
+ features. retain ( |f| !f. starts_with ( "Windows." ) ) ;
359
359
}
360
360
match features. len ( ) {
361
361
0 => quote ! { } ,
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ impl ImplementAttributes {
278
278
}
279
279
280
280
namespace. push_str ( & input. ident . to_string ( ) ) ;
281
- self . walk_implement ( & * input. tree , namespace) ?;
281
+ self . walk_implement ( & input. tree , namespace) ?;
282
282
}
283
283
UseTree2 :: Name ( _) => {
284
284
self . implement . push ( tree. to_element_type ( namespace) ?) ;
You can’t perform that action at this time.
0 commit comments