summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2024-11-14 16:01:00 +0100
committerAlberto Sartori <alberto.sartori@huawei.com>2024-11-27 10:18:48 +0100
commitc55a81b17ddd3e213915ce1a4e52f42115620e7e (patch)
tree96caab0b7143a9a23de0badc345db4ef48401994
parent576cef0810e78805e4ac5d8b019e4773bc58bebb (diff)
downloadrules-rust-c55a81b17ddd3e213915ce1a4e52f42115620e7e.tar.gz
just-import-cargo: convert a default dict to normal dict
-rwxr-xr-xbin/just-import-cargo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/just-import-cargo.py b/bin/just-import-cargo.py
index 86d55da..e82c0c9 100755
--- a/bin/just-import-cargo.py
+++ b/bin/just-import-cargo.py
@@ -447,7 +447,7 @@ def compute_targets(
d = defaultdict(list)
d["type"] = ["@", "rules", "cargo", "feature"]
d["name"] = [f]
- targets[f] = d
+ targets[f] = dict(d)
with open(targets_file, "w") as f:
print(hdumps(targets), file=f)
return targets