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};