Skip to content

Commit ce7fd68

Browse files
committed
Fix for merge conflict.
1 parent b392e7b commit ce7fd68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,8 +1526,8 @@ pub fn save_credentials(cfg: &Config, token: String, registry: Option<String>) -
15261526

15271527
if let Some(_) = registry {
15281528
if let Some(table) = toml.as_table_mut().unwrap().remove("registries") {
1529-
let v = CV::from_toml(file.path(), table)?;
1530-
value.merge(v)?;
1529+
let v = CV::from_toml(Definition::Path(file.path().to_path_buf()), table)?;
1530+
value.merge(v, false)?;
15311531
}
15321532
}
15331533
toml.as_table_mut().unwrap().insert(key, value.into_toml());

0 commit comments

Comments
 (0)