mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-11-25 00:02:22 +00:00
zeroed_slice_box returns Result (#28)
It returns `Result<(), Box>` instead of `Box` `cargo check` catched it How did it pass CI?
This commit is contained in:
parent
d02404cb65
commit
52be254e2c
@ -111,7 +111,7 @@ pub fn try_zeroed_slice_box<T: Pod>(length: usize) -> Result<Box<[T]>, ()> {
|
||||
}
|
||||
|
||||
/// As [`try_zeroed_slice_box`](try_zeroed_slice_box), but unwraps for you.
|
||||
pub fn zeroed_slice_box<T: Pod>(length: usize) -> Result<Box<[T]>, ()> {
|
||||
pub fn zeroed_slice_box<T: Pod>(length: usize) -> Box<[T]> {
|
||||
try_zeroed_slice_box(length).unwrap()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user