aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lib.rs
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-07-01 23:11:14 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-07-01 23:11:14 +0200
commit9f025e829ab6ed468cfb51d72ac105624afc3851 (patch)
tree2aaa2efdd2aced5ace9fedd8e04c020e1a96d575 /src/lib.rs
parent4e1887f91c3f763fc8cd0797e8d96901139daf60 (diff)
downloadmini-kvm-rs-9f025e829ab6ed468cfb51d72ac105624afc3851.tar.gz
mini-kvm-rs-9f025e829ab6ed468cfb51d72ac105624afc3851.zip
added support to query caps on kvm fd + few caps
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) }
}
}