diff --git a/src/graphics/mod.rs b/src/graphics/mod.rs index 244de25..c1f543a 100644 --- a/src/graphics/mod.rs +++ b/src/graphics/mod.rs @@ -14,7 +14,7 @@ use dmabuf::create_dmabuf_image; use smallvec::smallvec; #[cfg(feature = "openvr")] -use vulkano::{device::physical::PhysicalDeviceType, instance::InstanceCreateFlags}; +use vulkano::instance::InstanceCreateFlags; #[cfg(feature = "openxr")] use {ash::vk, std::os::raw::c_void}; @@ -37,7 +37,7 @@ use vulkano::{ allocator::StandardDescriptorSetAllocator, DescriptorSet, WriteDescriptorSet, }, device::{ - physical::PhysicalDevice, Device, DeviceCreateInfo, DeviceExtensions, DeviceFeatures, + physical::{PhysicalDevice, PhysicalDeviceType}, Device, DeviceCreateInfo, DeviceExtensions, DeviceFeatures, Queue, QueueCreateInfo, QueueFlags, }, format::Format, diff --git a/src/main.rs b/src/main.rs index 6da8541..0489b33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -165,7 +165,7 @@ fn auto_run(running: Arc, args: Args) { compile_error!("No desktop support! Enable either wayland or x11 features!"); } -#[allow(dead_code)] +#[allow(dead_code, unused_variables)] const fn args_get_openvr(args: &Args) -> bool { #[cfg(feature = "openvr")] let ret = args.openvr; @@ -176,7 +176,7 @@ const fn args_get_openvr(args: &Args) -> bool { ret } -#[allow(dead_code)] +#[allow(dead_code, unused_variables)] const fn args_get_openxr(args: &Args) -> bool { #[cfg(feature = "openxr")] let ret = args.openxr; diff --git a/src/overlays/screen.rs b/src/overlays/screen.rs index e4cbc96..dd7be60 100644 --- a/src/overlays/screen.rs +++ b/src/overlays/screen.rs @@ -4,7 +4,7 @@ use std::{ f32::consts::PI, ptr, sync::{atomic::AtomicU64, Arc, LazyLock}, - time::{Duration, Instant}, + time::Instant, }; use vulkano::{ command_buffer::CommandBufferUsage, @@ -278,7 +278,6 @@ pub struct ScreenRenderer { } impl ScreenRenderer { - #[cfg(feature = "wayland")] pub fn new_raw( name: Arc, capture: Box>, @@ -1107,6 +1106,7 @@ fn select_pw_screen( multiple: bool, ) -> Result { use crate::backend::notifications::DbusNotificationSender; + use std::time::Duration; use wlx_capture::pipewire::pipewire_select_screen; let future = async move {