mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 02:50:37 +00:00
fix: use specifier target by default in init
This commit is contained in:
parent
2b2d280fe0
commit
15af291f84
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ impl InitCommand {
|
|||
let field = &mut dev_deps[alias];
|
||||
field["name"] = toml_edit::value(spec.name.to_string());
|
||||
field["version"] = toml_edit::value(spec.version.to_string());
|
||||
field["target"] = toml_edit::value(v_id.target().to_string());
|
||||
field["target"] =
|
||||
toml_edit::value(spec.target.unwrap_or_else(|| *v_id.target()).to_string());
|
||||
}
|
||||
} else {
|
||||
println!(
|
||||
|
|
Loading…
Reference in a new issue