File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1910,15 +1910,14 @@ fn resolve_source_id_from_dependency<P: ResolveToPath + Clone>(
19101910 Only one of `registry` or `registry-index` is allowed.",
19111911 name_in_toml
19121912 ) ,
1913- ( Some ( git) , maybe_path, _, _) => {
1914- if maybe_path. is_some ( ) {
1915- bail ! (
1916- "dependency ({}) specification is ambiguous. \
1917- Only one of `git` or `path` is allowed.",
1918- name_in_toml
1919- ) ;
1920- }
1921-
1913+ ( Some ( _git) , Some ( _path) , _, _) => {
1914+ bail ! (
1915+ "dependency ({}) specification is ambiguous. \
1916+ Only one of `git` or `path` is allowed.",
1917+ name_in_toml
1918+ ) ;
1919+ }
1920+ ( Some ( git) , None , _, _) => {
19221921 let n_details = [ & orig. branch , & orig. tag , & orig. rev ]
19231922 . iter ( )
19241923 . filter ( |d| d. is_some ( ) )
You can’t perform that action at this time.
0 commit comments