mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 16:01:15 +00:00
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:
parent
46953db3ca
commit
dd3c086a0a
@ -653,8 +653,6 @@ mod mock_vmm {
|
|||||||
state: Arc<Mutex<CpuState>>,
|
state: Arc<Mutex<CpuState>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Sync for MockVmm {}
|
|
||||||
|
|
||||||
pub type MockResult = Result<(), EmulationError<Exception>>;
|
pub type MockResult = Result<(), EmulationError<Exception>>;
|
||||||
|
|
||||||
impl MockVmm {
|
impl MockVmm {
|
||||||
|
Loading…
Reference in New Issue
Block a user