We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc7fcaf commit 4b0fac9Copy full SHA for 4b0fac9
src/cargo/util/toml/mod.rs
@@ -1910,14 +1910,14 @@ fn to_dependency_source_id<P: ResolveToPath + Clone>(
1910
Only one of `registry` or `registry-index` is allowed.",
1911
name_in_toml
1912
),
1913
- (Some(_git), Some(_path), _, _) => {
+ (Some(_git), Some(_path), None, None) => {
1914
bail!(
1915
"dependency ({}) specification is ambiguous. \
1916
Only one of `git` or `path` is allowed.",
1917
1918
);
1919
}
1920
- (Some(git), None, _, _) => {
+ (Some(git), None, None, None) => {
1921
let n_details = [&orig.branch, &orig.tag, &orig.rev]
1922
.iter()
1923
.filter(|d| d.is_some())
0 commit comments