Skip to content

Commit ab79d28

Browse files
jturner314bluss
authored andcommitted
Change SliceInfo to be repr(transparent)
1 parent 7776bfc commit ab79d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ unsafe impl CanSlice<IxDyn> for [AxisSliceInfo] {
383383
///
384384
/// [`.slice()`]: struct.ArrayBase.html#method.slice
385385
#[derive(Debug)]
386-
#[repr(C)]
386+
#[repr(transparent)]
387387
pub struct SliceInfo<T: ?Sized, Din: Dimension, Dout: Dimension> {
388388
in_dim: PhantomData<Din>,
389389
out_dim: PhantomData<Dout>,

0 commit comments

Comments
 (0)