fix: use correct name field name for wally dependencies

This commit is contained in:
daimond113 2024-08-11 18:57:04 +02:00
parent 7a8376ebad
commit 876fa21bcb
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -165,7 +165,7 @@ impl AddCommand {
}
#[cfg(feature = "wally-compat")]
DependencySpecifiers::Wally(spec) => {
manifest[dependency_key][alias]["name"] =
manifest[dependency_key][alias]["wally"] =
toml_edit::value(spec.name.clone().to_string());
manifest[dependency_key][alias]["version"] =
toml_edit::value(format!("^{}", version_id.version()));