mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
net_util: add safety comments for impl ByteValued
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -42,6 +42,7 @@ pub struct ControlHeader {
|
||||
pub cmd: u8,
|
||||
}
|
||||
|
||||
// SAFETY: ControlHeader only contains a series of integers
|
||||
unsafe impl ByteValued for ControlHeader {}
|
||||
|
||||
pub struct CtrlQueue {
|
||||
|
||||
Reference in New Issue
Block a user