From 8c8f720bacd9430ec6584b3415ba0e9e28ac674e Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Tue, 5 Nov 2024 03:44:32 +0900 Subject: [PATCH] clippy --- src/graphics/mod.rs | 2 +- src/gui/font.rs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/graphics/mod.rs b/src/graphics/mod.rs index 57be39e..3024981 100644 --- a/src/graphics/mod.rs +++ b/src/graphics/mod.rs @@ -848,7 +848,7 @@ impl WlxGraphics { let file = std::fs::File::from_raw_fd(fd); let new_file = file.try_clone()?; - file.into_raw_fd(); + let _ = file.into_raw_fd(); let memory = DeviceMemory::allocate_unchecked( self.device.clone(), diff --git a/src/gui/font.rs b/src/gui/font.rs index f7673e4..f8a4072 100644 --- a/src/gui/font.rs +++ b/src/gui/font.rs @@ -1,11 +1,7 @@ use std::{rc::Rc, str::FromStr, sync::Arc}; use fontconfig::{FontConfig, OwnedPattern}; -use freetype::{ - bitmap::PixelMode, - face::{CharIterator, LoadFlag}, - Face, Library, -}; +use freetype::{bitmap::PixelMode, face::LoadFlag, Face, Library}; use idmap::IdMap; use vulkano::{command_buffer::CommandBufferUsage, format::Format, image::Image};