aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1833890..372255c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,6 +3,7 @@ use std::io;
use std::ops;
use std::os::unix::io::AsRawFd;
+pub mod cap;
mod fmt;
pub mod kvm;
pub mod kvm_sys;
@@ -154,7 +155,7 @@ impl ops::Drop for KvmRun {
impl AsRef<kvm_sys::kvm_run> for KvmRun {
fn as_ref(&self) -> &kvm_sys::kvm_run {
- unsafe { & *(self.ptr as *const kvm_sys::kvm_run) }
+ unsafe { &*(self.ptr as *const kvm_sys::kvm_run) }
}
}