Skip to content

Commit 83b4edd

Browse files
committed
Fix formatting
1 parent f18ce3c commit 83b4edd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

testcrate/tests/mem.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,14 @@ fn memset_nonzero() {
116116

117117
#[test]
118118
fn memcmp_eq() {
119-
let arr1: [u8; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
120-
let arr2: [u8; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
119+
let arr1: [u8; 32] = [
120+
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
121+
25, 26, 27, 28, 29, 30, 31,
122+
];
123+
let arr2: [u8; 32] = [
124+
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
125+
25, 26, 27, 28, 29, 30, 31,
126+
];
121127
for i in 0..32 {
122128
unsafe {
123129
assert_eq!(memcmp(arr1.as_ptr(), arr2.as_ptr(), i), 0);

0 commit comments

Comments
 (0)