diff --git a/pci/src/configuration.rs b/pci/src/configuration.rs index f1bf0957a..f4a190a66 100644 --- a/pci/src/configuration.rs +++ b/pci/src/configuration.rs @@ -961,7 +961,7 @@ mod tests { foo: u8, } - // It is safe to implement BytesValued; all members are simple numbers and any value is valid. + // SAFETY: All members are simple numbers and any value is valid. unsafe impl ByteValued for TestCap {} impl PciCapability for TestCap { diff --git a/pci/src/msix.rs b/pci/src/msix.rs index ac814c1da..a9ed04595 100644 --- a/pci/src/msix.rs +++ b/pci/src/msix.rs @@ -468,7 +468,7 @@ pub struct MsixCap { pub pba: u32, } -// It is safe to implement ByteValued. All members are simple numbers and any value is valid. +// SAFETY: All members are simple numbers and any value is valid. unsafe impl ByteValued for MsixCap {} impl PciCapability for MsixCap {