replace uarray with Pod

This commit is contained in:
Intege-rs
2024-11-14 06:18:44 -05:00
parent 8f36c0b996
commit 427eb56a50
3 changed files with 22 additions and 5 deletions

View File

@@ -44,8 +44,4 @@ pub fn distance(p1: impl As<usize>, p2: impl As<usize>) -> usize {
Ordering::Greater => p1 - p2,
Ordering::Equal => 0,
}
}
pub fn uarray<const LEN: usize, T: Sized>() -> [T;LEN] {
unsafe { MaybeUninit::uninit().assume_init() }
}