summary refs log tree commit diff
path: root/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'kvm')
-rw-r--r--kvm/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm/src/lib.rs b/kvm/src/lib.rs
index 919aad3..16d73f1 100644
--- a/kvm/src/lib.rs
+++ b/kvm/src/lib.rs
@@ -1162,7 +1162,7 @@ impl Vcpu {
     ///
     /// This function should be called after `Vcpu::run` returns an `VcpuExit::IoIn` or
     /// `Vcpu::MmioRead`.
-    #[cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))]
+    #[allow(clippy::cast_ptr_alignment)]
     pub fn set_data(&self, data: &[u8]) -> Result<()> {
         // Safe because we know we mapped enough memory to hold the kvm_run struct because the
         // kernel told us how large it was. The pointer is page aligned so casting to a different
@@ -1211,7 +1211,7 @@ impl Vcpu {
     ///
     /// Note that the state of the VCPU and associated VM must be setup first for this to do
     /// anything useful.
-    #[cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))]
+    #[allow(clippy::cast_ptr_alignment)]
     // The pointer is page aligned so casting to a different type is well defined, hence the clippy
     // allow attribute.
     pub fn run(&self) -> Result<VcpuExit> {