Skip to content

Commit d387e0e

Browse files
committed
Rustfmt altivec.rs
1 parent 2f7435e commit d387e0e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

crates/core_arch/src/powerpc/altivec.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,16 +1898,24 @@ mod tests {
18981898
unsafe fn test_vec_ld() {
18991899
let pat = [
19001900
u8x16::new(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15),
1901-
u8x16::new(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31)
1901+
u8x16::new(
1902+
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
1903+
),
19021904
];
19031905

19041906
for off in 0..16 {
19051907
let v: u8x16 = transmute(vec_ld(0, (pat.as_ptr() as *const u8).offset(off)));
1906-
assert_eq!(v, u8x16::new(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15));
1908+
assert_eq!(
1909+
v,
1910+
u8x16::new(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
1911+
);
19071912
}
19081913
for off in 16..32 {
19091914
let v: u8x16 = transmute(vec_ld(0, (pat.as_ptr() as *const u8).offset(off)));
1910-
assert_eq!(v, u8x16::new(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31));
1915+
assert_eq!(
1916+
v,
1917+
u8x16::new(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31)
1918+
);
19111919
}
19121920
}
19131921

0 commit comments

Comments
 (0)