aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs2
-rw-r--r--src/vcpu.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 69be3c1..1833890 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,7 +3,7 @@ use std::io;
use std::ops;
use std::os::unix::io::AsRawFd;
-pub mod fmt;
+mod fmt;
pub mod kvm;
pub mod kvm_sys;
pub mod vcpu;
diff --git a/src/vcpu.rs b/src/vcpu.rs
index 085a3c7..7d5b8bb 100644
--- a/src/vcpu.rs
+++ b/src/vcpu.rs
@@ -54,7 +54,7 @@ impl Vcpu {
.map(|_| ())
}
- pub fn run(&mut self) -> io::Result<KvmExit> {
+ pub fn run(&mut self) -> io::Result<KvmExit<'_>> {
ioctl(&self.vcpu, kvm_sys::KVM_RUN, 0)?;
let kvm_run = self.kvm_run.as_mut();