From 209171abfcd8b70a3e943ffda6738ea01047961c Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 11 Sep 2025 16:02:25 -0700 Subject: [PATCH] cleanup: clippy --- src/wayland/core/shm_buffer_backing.rs | 9 ++++----- src/wayland/core/surface.rs | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/wayland/core/shm_buffer_backing.rs b/src/wayland/core/shm_buffer_backing.rs index 08f7f77..1b81ea1 100644 --- a/src/wayland/core/shm_buffer_backing.rs +++ b/src/wayland/core/shm_buffer_backing.rs @@ -1,14 +1,13 @@ use crate::wayland::{RENDER_DEVICE, vulkano_data::VULKANO_CONTEXT}; use super::shm_pool::ShmPool; +use bevy::asset::RenderAssetUsages; use bevy::{ - asset::{Assets, Handle, RenderAssetUsages}, + asset::{Assets, Handle}, image::Image, - render::render_resource::{Extent3d, TextureDimension, TextureFormat}, }; use bevy_dmabuf::{ dmatex::{Dmatex, DmatexPlane, Resolution}, - format_mapping::{drm_fourcc_to_vk_format, vk_format_to_drm_fourcc}, import::{DropCallback, ImportedDmatexs, ImportedTexture, import_texture}, }; use drm_fourcc::DrmFourcc; @@ -20,7 +19,7 @@ use std::{ }; use tracing::debug_span; use vulkano::{ - buffer::{BufferCreateFlags, BufferUsage}, + buffer::BufferUsage, command_buffer::{ AutoCommandBufferBuilder, CommandBufferUsage, CopyBufferToImageInfo, PrimaryCommandBufferAbstract, @@ -31,7 +30,7 @@ use vulkano::{ }, memory::{ DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, MemoryAllocateInfo, - MemoryPropertyFlags, ResourceMemory, + ResourceMemory, allocator::{AllocationCreateInfo, MemoryTypeFilter}, }, sync::GpuFuture, diff --git a/src/wayland/core/surface.rs b/src/wayland/core/surface.rs index f4fa2c9..17b5ac1 100644 --- a/src/wayland/core/surface.rs +++ b/src/wayland/core/surface.rs @@ -23,7 +23,6 @@ use bevy_dmabuf::import::ImportedDmatexs; use mint::Vector2; use parking_lot::Mutex; use std::sync::{Arc, OnceLock, Weak}; -use tokio::task::LocalSet; use waynest::{ server::{ self, Client, Dispatcher, Result,