Skip to content

Commit fec38e1

Browse files
committed
Use empty Vec literal in registry examples
1 parent cbdd368 commit fec38e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/language/registry.cell‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ action local_registry_membership(owner: Address, candidate: Address) -> bool {
1919
}
2020

2121
action local_registry_key_roundtrip(first: Hash, second: Hash) -> bool {
22-
let mut keys = Vec::new();
22+
let mut keys: Vec<Hash> = [];
2323
keys.push(first);
2424
keys.push(second);
2525
let popped = keys.pop();

‎examples/registry.cell‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ action local_registry_membership(owner: Address, candidate: Address) -> bool {
1919
}
2020

2121
action local_registry_key_roundtrip(first: Hash, second: Hash) -> bool {
22-
let mut keys = Vec::new();
22+
let mut keys: Vec<Hash> = [];
2323
keys.push(first);
2424
keys.push(second);
2525
let popped = keys.pop();

0 commit comments

Comments
 (0)