]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: vmstate: add std::pin::Pin as transparent wrapper
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2025 09:28:56 +0000 (10:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Mar 2025 11:44:46 +0000 (12:44 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/vmstate.rs

index 24a4dc81e7fd66294a8fb4afb6e6b1d44ca4ed0e..1e7ba531e2a1e44dd55d9a7a7660a069734d3071 100644 (file)
@@ -330,6 +330,7 @@ macro_rules! impl_vmstate_transparent {
 
 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);