From 5796bd6865bb6e2f1165454c4e576c0acdfd0986 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sun, 11 Aug 2024 03:15:44 +0200 Subject: [PATCH] Fix warning Signed-off-by: prescientmoon --- src/recognition/hyperglass.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/recognition/hyperglass.rs b/src/recognition/hyperglass.rs index 00e956e..1595e94 100644 --- a/src/recognition/hyperglass.rs +++ b/src/recognition/hyperglass.rs @@ -218,7 +218,7 @@ pub struct CharMeasurements { impl CharMeasurements { // {{{ Creation - pub fn from_text(face: &mut Face, string: &str, weight: Option) -> Result { + pub fn from_text(face: &mut Face, string: &str, _weight: Option) -> Result { // These are bad estimates lol let char_w = 35; let char_h = 60; @@ -233,6 +233,7 @@ impl CharMeasurements { align: (Align::Start, Align::Start), size: char_h, color: Color::BLACK, + // TODO: do we want to use the weight hint for resilience? weight: None, }, &string,