Fix warning
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
4373b6ca62
commit
5796bd6865
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue