Message ID | 20250227142219.812270-4-pbonzini@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | rust: wrap all C types exposed through qemu_api | expand |
On Thu, Feb 27, 2025 at 03:22:10PM +0100, Paolo Bonzini wrote: > Date: Thu, 27 Feb 2025 15:22:10 +0100 > From: Paolo Bonzini <pbonzini@redhat.com> > Subject: [PATCH 03/12] rust: vmstate: add std::pin::Pin as transparent > wrapper > X-Mailer: git-send-email 2.48.1 > > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> > --- > rust/qemu-api/src/vmstate.rs | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
diff --git a/rust/qemu-api/src/vmstate.rs b/rust/qemu-api/src/vmstate.rs index 24a4dc81e7f..1e7ba531e2a 100644 --- a/rust/qemu-api/src/vmstate.rs +++ b/rust/qemu-api/src/vmstate.rs @@ -330,6 +330,7 @@ unsafe impl<$base> VMState for $type where $base: VMState $($where)* { impl_vmstate_transparent!(std::cell::Cell<T> where T: VMState); impl_vmstate_transparent!(std::cell::UnsafeCell<T> where T: VMState); +impl_vmstate_transparent!(std::pin::Pin<T> where T: VMState); impl_vmstate_transparent!(crate::cell::BqlCell<T> where T: VMState); impl_vmstate_transparent!(crate::cell::BqlRefCell<T> where T: VMState);
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- rust/qemu-api/src/vmstate.rs | 1 + 1 file changed, 1 insertion(+)