Skip to content

Commit 2ad257c

Browse files
committed
unused_assignments: use same solution as Cuprate#574
1 parent 9b195ad commit 2ad257c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptonight/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ mod tests {
8383
}
8484

8585
#[test]
86+
#[expect(unused_assignments)]
8687
fn test_subarray_copy() {
8788
let mut array = [1_u8, 2, 3, 4, 5];
8889
let sub_copied: [u8; 3] = subarray_copy(&array, 1);
8990
assert_eq!(sub_copied, [2, 3, 4]);
9091
array[1] = 10;
91-
assert_eq!(array[1], 10);
9292
assert_eq!(sub_copied, [2, 3, 4]); // copy, not affected
9393
}
9494

0 commit comments

Comments
 (0)