oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

fixed some warnings

Commit
50d8817bcceec784518bc9206ce08e479a6e8d72
Parent
597aa85
Author
tonybanters <tonybanters@gmail.com>
Date
2025-10-04 00:32:19

Diff

diff --git a/src/bar/font.rs b/src/bar/font.rs
index 7851139..f93ffe8 100644
--- a/src/bar/font.rs
+++ b/src/bar/font.rs
@@ -1,6 +1,5 @@
 use anyhow::Result;
 use std::ffi::CString;
-use std::ptr;
 use x11::xft::{XftColor, XftDraw, XftDrawStringUtf8, XftFont, XftFontOpenName};
 use x11::xlib::{Colormap, Display, Drawable, Visual};
 use x11::xrender::XRenderColor;
@@ -47,7 +46,7 @@ impl Font {
                 text.len() as i32,
                 &mut extents,
             );
-            extents.width as u16
+            extents.width
         }
     }
 }
diff --git a/src/config.rs b/src/config.rs
index d43dc97..38ad5d9 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -24,7 +24,6 @@ pub const MODKEY: KeyButMask = KeyButMask::MOD1;
 const GRAY_DARK: u32 = 0x222222;
 const GRAY_MID: u32 = 0x444444;
 const GRAY_LIGHT: u32 = 0xbbbbbb;
-// const GRAY_LIGHTEST: u32 = 0xeeeeee;
 const CYAN: u32 = 0x6dade3;
 const MAGENTA: u32 = 0xad8ee6;