Skip to content

Commit 4b0fac9

Browse files
committed
refactor(toml): make match patterns explicit
1 parent cc7fcaf commit 4b0fac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,14 +1910,14 @@ fn to_dependency_source_id<P: ResolveToPath + Clone>(
19101910
Only one of `registry` or `registry-index` is allowed.",
19111911
name_in_toml
19121912
),
1913-
(Some(_git), Some(_path), _, _) => {
1913+
(Some(_git), Some(_path), None, None) => {
19141914
bail!(
19151915
"dependency ({}) specification is ambiguous. \
19161916
Only one of `git` or `path` is allowed.",
19171917
name_in_toml
19181918
);
19191919
}
1920-
(Some(git), None, _, _) => {
1920+
(Some(git), None, None, None) => {
19211921
let n_details = [&orig.branch, &orig.tag, &orig.rev]
19221922
.iter()
19231923
.filter(|d| d.is_some())

0 commit comments

Comments
 (0)