@@ -27,16 +27,16 @@ static NON_BASE_TARGETS: &[&str] = &[
27
27
fn build ( package : & str , target : & str , features : & [ & str ] ) {
28
28
println ! ( "building {} for {} {:?}" , package, target, features) ;
29
29
let mut cargo = Command :: new ( "cargo" ) ;
30
- cargo. args ( & [ "build" , "-p" , package, "--target" , target] ) ;
30
+ cargo. args ( [ "build" , "-p" , package, "--target" , target] ) ;
31
31
for feat in features {
32
- cargo. args ( & [ "--features" , * feat] ) ;
32
+ cargo. args ( [ "--features" , * feat] ) ;
33
33
}
34
34
35
35
// A `critical_section` implementation is always needed.
36
36
if package == "cortex-m" {
37
- cargo. args ( & [ "--features" , "critical-section-single-core" ] ) ;
37
+ cargo. args ( [ "--features" , "critical-section-single-core" ] ) ;
38
38
} else {
39
- cargo. args ( & [ "--features" , "cortex-m/critical-section-single-core" ] ) ;
39
+ cargo. args ( [ "--features" , "cortex-m/critical-section-single-core" ] ) ;
40
40
}
41
41
42
42
// Cargo features don't work right when invoked from the workspace root, so change to the
@@ -77,7 +77,7 @@ fn check_crates_build(_is_nightly: bool) {
77
77
let used_features = & * all_features
78
78
. iter ( )
79
79
. copied ( )
80
- . filter ( |feat| should_use_feature ( * feat) )
80
+ . filter ( |feat| should_use_feature ( feat) )
81
81
. collect :: < Vec < _ > > ( ) ;
82
82
83
83
// (note: we don't test with default features disabled, since we don't use them yet)
0 commit comments