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 to_dependency_source_id<P: ResolveToPath + Clone>(
1910
1910
Only one of `registry` or `registry-index` is allowed.",
1911
1911
name_in_toml
1912
1912
) ,
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 , _, _) => {
1922
1921
let n_details = [ & orig. branch , & orig. tag , & orig. rev ]
1923
1922
. iter ( )
1924
1923
. filter ( |d| d. is_some ( ) )
You can’t perform that action at this time.
0 commit comments