cleanup: clippy

This commit is contained in:
Nova
2025-09-11 16:02:25 -07:00
parent 7e53db3d33
commit 209171abfc
2 changed files with 4 additions and 6 deletions

View File

@@ -1,14 +1,13 @@
use crate::wayland::{RENDER_DEVICE, vulkano_data::VULKANO_CONTEXT}; use crate::wayland::{RENDER_DEVICE, vulkano_data::VULKANO_CONTEXT};
use super::shm_pool::ShmPool; use super::shm_pool::ShmPool;
use bevy::asset::RenderAssetUsages;
use bevy::{ use bevy::{
asset::{Assets, Handle, RenderAssetUsages}, asset::{Assets, Handle},
image::Image, image::Image,
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
}; };
use bevy_dmabuf::{ use bevy_dmabuf::{
dmatex::{Dmatex, DmatexPlane, Resolution}, dmatex::{Dmatex, DmatexPlane, Resolution},
format_mapping::{drm_fourcc_to_vk_format, vk_format_to_drm_fourcc},
import::{DropCallback, ImportedDmatexs, ImportedTexture, import_texture}, import::{DropCallback, ImportedDmatexs, ImportedTexture, import_texture},
}; };
use drm_fourcc::DrmFourcc; use drm_fourcc::DrmFourcc;
@@ -20,7 +19,7 @@ use std::{
}; };
use tracing::debug_span; use tracing::debug_span;
use vulkano::{ use vulkano::{
buffer::{BufferCreateFlags, BufferUsage}, buffer::BufferUsage,
command_buffer::{ command_buffer::{
AutoCommandBufferBuilder, CommandBufferUsage, CopyBufferToImageInfo, AutoCommandBufferBuilder, CommandBufferUsage, CopyBufferToImageInfo,
PrimaryCommandBufferAbstract, PrimaryCommandBufferAbstract,
@@ -31,7 +30,7 @@ use vulkano::{
}, },
memory::{ memory::{
DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, MemoryAllocateInfo, DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, MemoryAllocateInfo,
MemoryPropertyFlags, ResourceMemory, ResourceMemory,
allocator::{AllocationCreateInfo, MemoryTypeFilter}, allocator::{AllocationCreateInfo, MemoryTypeFilter},
}, },
sync::GpuFuture, sync::GpuFuture,

View File

@@ -23,7 +23,6 @@ use bevy_dmabuf::import::ImportedDmatexs;
use mint::Vector2; use mint::Vector2;
use parking_lot::Mutex; use parking_lot::Mutex;
use std::sync::{Arc, OnceLock, Weak}; use std::sync::{Arc, OnceLock, Weak};
use tokio::task::LocalSet;
use waynest::{ use waynest::{
server::{ server::{
self, Client, Dispatcher, Result, self, Client, Dispatcher, Result,