@@ -241,7 +241,7 @@ pub fn normalize_bins(
241
241
errors : & mut Vec < String > ,
242
242
has_lib : bool ,
243
243
) -> CargoResult < Vec < TomlBinTarget > > {
244
- if is_normalized ( toml_bins, autodiscover) {
244
+ if are_normalized ( toml_bins, autodiscover) {
245
245
let toml_bins = toml_bins. cloned ( ) . unwrap_or_default ( ) ;
246
246
for bin in & toml_bins {
247
247
validate_bin_name ( bin, warnings) ?;
@@ -528,7 +528,7 @@ fn to_bench_targets(
528
528
Ok ( result)
529
529
}
530
530
531
- fn is_normalized ( toml_targets : Option < & Vec < TomlTarget > > , autodiscover : Option < bool > ) -> bool {
531
+ fn are_normalized ( toml_targets : Option < & Vec < TomlTarget > > , autodiscover : Option < bool > ) -> bool {
532
532
if autodiscover != Some ( false ) {
533
533
return false ;
534
534
}
@@ -581,7 +581,7 @@ fn normalize_targets_with_legacy_path(
581
581
legacy_path : & mut dyn FnMut ( & TomlTarget ) -> Option < PathBuf > ,
582
582
autodiscover_flag_name : & str ,
583
583
) -> CargoResult < Vec < TomlTarget > > {
584
- if is_normalized ( toml_targets, autodiscover) {
584
+ if are_normalized ( toml_targets, autodiscover) {
585
585
let toml_targets = toml_targets. cloned ( ) . unwrap_or_default ( ) ;
586
586
for target in & toml_targets {
587
587
// Check early to improve error messages
0 commit comments