hypervisor: drop one unsafe from mock_vmm

Simple aggregate types are Sync by default. There is no need to use
`impl Sync` for MockVmm (a simple struct).

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2021-11-18 12:31:51 +00:00 committed by Rob Bradford
parent 46953db3ca
commit dd3c086a0a

View File

@ -653,8 +653,6 @@ mod mock_vmm {
state: Arc<Mutex<CpuState>>,
}
unsafe impl Sync for MockVmm {}
pub type MockResult = Result<(), EmulationError<Exception>>;
impl MockVmm {