Skip to content

Commit 8940945

Browse files
ggreiffury02
authored andcommitted
Merge pull request #411 from dfinity/ggreif/update-moc-0.7.0
Update `moc` to 0.7.0
2 parents 73d34ad + 0c2eee4 commit 8940945

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# Remember to update me in package-set.yml as well
1010
env:
1111
vessel_version: "v0.6.3"
12-
moc_version: "0.6.30"
12+
moc_version: "0.7.0"
1313

1414
jobs:
1515
tests:

.github/workflows/package-set.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
vessel_version: "v0.6.3"
11-
moc_version: "0.6.30"
11+
moc_version: "0.7.0"
1212

1313
jobs:
1414
verify:

src/TrieSet.mo

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ module {
2626

2727
/// Put an element into the set.
2828
public func put<T>(s : Set<T>, x : T, xh : Hash, eq : (T, T) -> Bool) : Set<T> {
29-
let (s2, _) = Trie.put<T,()>(s, { key = x; hash = xh }, eq, ());
30-
s2
29+
// let (s2, _) = Trie.put<T,()>(s, { key = x; hash = xh }, eq, ());
30+
// s2
31+
s := Trie.put<T,()>(s, { key = x; hash = xh x}, eq, ()).0;
32+
s
3133
};
3234

3335
/// Delete an element from the set.
3436
public func delete<T>(s : Set<T>, x : T, xh : Hash, eq : (T, T) -> Bool) : Set<T> {
35-
let (s2, _) = Trie.remove<T, ()>(s, { key = x; hash = xh }, eq);
36-
s2
37+
// let (s2, _) = Trie.remove<T, ()>(s, { key = x; hash = xh }, eq);
38+
// s2
39+
s := Trie.remove<T, ()>(s, { key = x; hash = xh}, eq).0;
40+
s
3741
};
3842

3943
/// Test if two sets are equal.

0 commit comments

Comments
 (0)