Skip to content

Commit f37e873

Browse files
committed
Reduce bytemuck safety docs to comments
1 parent 5ee177f commit f37e873

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,15 @@ impl<T: FloatCore> Complex<T> {
592592
}
593593
}
594594

595-
/// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
596-
/// can guarantee it contains no *added* padding. Thus, if `T: Zeroable`,
597-
/// `Complex<T>` is also `Zeroable`
595+
// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
596+
// can guarantee it contains no *added* padding. Thus, if `T: Zeroable`,
597+
// `Complex<T>` is also `Zeroable`
598598
#[cfg(feature = "bytemuck")]
599599
unsafe impl<T: bytemuck::Zeroable> bytemuck::Zeroable for Complex<T> {}
600600

601-
/// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
602-
/// can guarantee it contains no *added* padding. Thus, if `T: Pod`,
603-
/// `Complex<T>` is also `Pod`
601+
// Safety: `Complex<T>` is `repr(C)` and contains only instances of `T`, so we
602+
// can guarantee it contains no *added* padding. Thus, if `T: Pod`,
603+
// `Complex<T>` is also `Pod`
604604
#[cfg(feature = "bytemuck")]
605605
unsafe impl<T: bytemuck::Pod> bytemuck::Pod for Complex<T> {}
606606

0 commit comments

Comments
 (0)