Skip to content

Commit 9ab1cf9

Browse files
committed
fix bug where workspace = true would not show up after update_toml
1 parent a4c1cd0 commit 9ab1cf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cargo/ops/cargo_add/dependency.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,9 @@ impl Dependency {
539539
}
540540
}
541541
Some(Source::Workspace(_)) => {
542+
table.insert("workspace", toml_edit::value(true));
542543
table.set_dotted(true);
544+
key.fmt();
543545
for key in [
544546
"version",
545547
"registry",

0 commit comments

Comments
 (0)