Skip to content

Commit 9d7b903

Browse files
committed
Fix stdlib warnings
1 parent a5b96a8 commit 9d7b903

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

noir_stdlib/src/collections/umap.nr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ mod test {
556556
unconstrained fn test_with_hasher_and_capacity_zero() {
557557
let mut m: UHashMap<Field, Field, BuildHasherDefault<Poseidon2Hasher>> =
558558
UHashMap::with_hasher_and_capacity(BuildHasherDefault::<Poseidon2Hasher> {}, 0);
559-
m.insert(1, 1); // This used to produce an index out of bounds
559+
let _ = m.insert(1, 1); // This used to produce an index out of bounds
560560
}
561561

562562
struct MaxHasher {
@@ -577,7 +577,7 @@ mod test {
577577
#[test]
578578
unconstrained fn test_max_hash() {
579579
let mut m: UHashMap<Field, Field, BuildHasherDefault<MaxHasher>> = UHashMap::default();
580-
m.insert(1, 1);
581-
m.insert(2, 2); // This used to produce a math overflow
580+
let _ = m.insert(1, 1);
581+
let _ = m.insert(2, 2); // This used to produce a math overflow
582582
}
583583
}

0 commit comments

Comments
 (0)