1
Fork 0

Fix warning

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
prescientmoon 2024-08-11 03:15:44 +02:00
parent 4373b6ca62
commit 5796bd6865
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -218,7 +218,7 @@ pub struct CharMeasurements {
impl CharMeasurements { impl CharMeasurements {
// {{{ Creation // {{{ Creation
pub fn from_text(face: &mut Face, string: &str, weight: Option<u32>) -> Result<Self, Error> { pub fn from_text(face: &mut Face, string: &str, _weight: Option<u32>) -> Result<Self, Error> {
// These are bad estimates lol // These are bad estimates lol
let char_w = 35; let char_w = 35;
let char_h = 60; let char_h = 60;
@ -233,6 +233,7 @@ impl CharMeasurements {
align: (Align::Start, Align::Start), align: (Align::Start, Align::Start),
size: char_h, size: char_h,
color: Color::BLACK, color: Color::BLACK,
// TODO: do we want to use the weight hint for resilience?
weight: None, weight: None,
}, },
&string, &string,