Skip to content

Commit c730621

Browse files
committed
refactor(toml): Rename is_normalized to are_normalized
1 parent 975e816 commit c730621

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/util/toml/targets.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub fn normalize_bins(
241241
errors: &mut Vec<String>,
242242
has_lib: bool,
243243
) -> CargoResult<Vec<TomlBinTarget>> {
244-
if is_normalized(toml_bins, autodiscover) {
244+
if are_normalized(toml_bins, autodiscover) {
245245
let toml_bins = toml_bins.cloned().unwrap_or_default();
246246
for bin in &toml_bins {
247247
validate_bin_name(bin, warnings)?;
@@ -528,7 +528,7 @@ fn to_bench_targets(
528528
Ok(result)
529529
}
530530

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 {
532532
if autodiscover != Some(false) {
533533
return false;
534534
}
@@ -581,7 +581,7 @@ fn normalize_targets_with_legacy_path(
581581
legacy_path: &mut dyn FnMut(&TomlTarget) -> Option<PathBuf>,
582582
autodiscover_flag_name: &str,
583583
) -> CargoResult<Vec<TomlTarget>> {
584-
if is_normalized(toml_targets, autodiscover) {
584+
if are_normalized(toml_targets, autodiscover) {
585585
let toml_targets = toml_targets.cloned().unwrap_or_default();
586586
for target in &toml_targets {
587587
// Check early to improve error messages

0 commit comments

Comments
 (0)