mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
hypervisor: fix building doctests
When doctests are built, the crate is built with itself as a dependency via --extern. This causes a compiler error if using a module with the name same as the crate, because it's ambiguous whether it's referring to the module, or the extern version of the crate, so it's necessary to disambiguate when using the hypervisor module here. Fixes running cargo test --doc --workspace. Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
parent
a807b91f86
commit
1ed4898d28
@ -48,9 +48,9 @@ mod cpu;
|
||||
/// Device related module
|
||||
mod device;
|
||||
|
||||
pub use crate::hypervisor::{Hypervisor, HypervisorError};
|
||||
pub use cpu::{HypervisorCpuError, Vcpu, VmExit};
|
||||
pub use device::HypervisorDeviceError;
|
||||
pub use hypervisor::{Hypervisor, HypervisorError};
|
||||
#[cfg(all(feature = "kvm", target_arch = "aarch64"))]
|
||||
pub use kvm::{aarch64, GicState};
|
||||
use std::sync::Arc;
|
||||
|
Loading…
Reference in New Issue
Block a user