diff --git a/crates/vhost-device-gpio/src/gpio.rs b/crates/vhost-device-gpio/src/gpio.rs index 8218ef8..7773aaa 100644 --- a/crates/vhost-device-gpio/src/gpio.rs +++ b/crates/vhost-device-gpio/src/gpio.rs @@ -96,13 +96,6 @@ pub(crate) struct PhysDevice { state: Vec>, } -// SAFETY: Safe as the structure can be sent to another thread. -unsafe impl Send for PhysDevice {} - -// SAFETY: Safe as the structure can be shared with another thread as the state -// is protected with a lock. -unsafe impl Sync for PhysDevice {} - impl GpioDevice for PhysDevice { fn open(device: u32) -> Result where