Skip to content

Commit 3505b05

Browse files
committed
refactor(toml): show name with underscore for readability
1 parent a5d2a1d commit 3505b05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,15 +1897,15 @@ fn to_dependency_source_id<P: ResolveToPath + Clone>(
18971897
let new_source_id = match (
18981898
orig.git.as_ref(),
18991899
orig.path.as_ref(),
1900-
orig.registry.as_ref(),
1900+
orig.registry.as_deref(),
19011901
orig.registry_index.as_ref(),
19021902
) {
1903-
(Some(_), _, Some(_), _) | (Some(_), _, _, Some(_)) => bail!(
1903+
(Some(_git), _, Some(_registry), _) | (Some(_git), _, _, Some(_registry)) => bail!(
19041904
"dependency ({}) specification is ambiguous. \
19051905
Only one of `git` or `registry` is allowed.",
19061906
name_in_toml
19071907
),
1908-
(_, _, Some(_), Some(_)) => bail!(
1908+
(_, _, Some(_registry), Some(_registry_index)) => bail!(
19091909
"dependency ({}) specification is ambiguous. \
19101910
Only one of `registry` or `registry-index` is allowed.",
19111911
name_in_toml

0 commit comments

Comments
 (0)