From 87339f96b52e5df5fd8ab47bd00fc3429029aed9 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Sun, 8 May 2022 04:48:12 +0000 Subject: [PATCH] rustfmt --- src/config.rs | 1 + src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 09b4ea1..696f8ce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -7,6 +7,7 @@ impl Defaults { const fn unlock() -> bool { true } + #[inline] const fn unlock_migration() -> bool { false diff --git a/src/lib.rs b/src/lib.rs index e606509..a185c46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -347,16 +347,15 @@ pub unsafe extern "C" fn ioctl(fd: RawFd, request: c_ulong, argp: *mut c_void) - // Set device type to vGPU capable. *dev_type_ptr = DEV_TYPE_VGPU_CAPABLE; - }, + } OP_READ_VGPU_MIGRATION_CAP if CONFIG.unlock_migration => { let mig_enabled: *mut bool = io_data.result.cast(); *mig_enabled = true; - }, + } _ => {} } - if io_data.status == STATUS_OK { match io_data.op_type { OP_READ_VGPU_CFG => {