]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust/vmstate: Remove unnecessary unsafe
authorZhao Liu <zhao1.liu@intel.com>
Tue, 18 Mar 2025 13:02:05 +0000 (21:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2025 11:56:00 +0000 (12:56 +0100)
commitea8a7ceba3aafe4de9e7306df663698809e8381a
tree0c68e20385749be87276c51587296e6ccd80ed63
parente16354b7f2e70d5ece97854d00141e3df4625cf6
rust/vmstate: Remove unnecessary unsafe

Remove the `unsafe` block of vmsd, because vmsd (passed to
vmstate_struct) is defined in Rust side now, and it doesn't need
`unsafe`.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250318130219.1799170-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/vmstate.rs