Skip to content

Commit 0c14827

Browse files
committed
test(core): remove utils::mem::tests::uninit_array that tests nothing at this point
1 parent 184888d commit 0c14827

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/r3_core/src/utils/mem.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,3 @@ pub const unsafe fn transmute<T, U>(x: T) -> U {
3030
pub const fn uninit_array<T, const LEN: usize>() -> [MaybeUninit<T>; LEN] {
3131
MaybeUninit::uninit_array()
3232
}
33-
34-
#[cfg(test)]
35-
mod tests {
36-
use super::*;
37-
use core::mem::MaybeUninit;
38-
39-
#[test]
40-
fn uninit_array() {
41-
const ARRAY1: [u32; 3] = {
42-
let array = [
43-
MaybeUninit::new(1u32),
44-
MaybeUninit::new(2),
45-
MaybeUninit::new(3),
46-
];
47-
unsafe { MaybeUninit::array_assume_init(array) }
48-
};
49-
assert_eq!(ARRAY1, [1, 2, 3]);
50-
}
51-
}

0 commit comments

Comments
 (0)