From 27ac70f1c05c75c7b354aed7bc3084bc26733c38 Mon Sep 17 00:00:00 2001 From: Rodney Lab Date: Fri, 15 Nov 2024 10:30:23 +0000 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=9B=81=20linting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/app.rs b/src/app.rs index b9e6fff..de8036c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -448,14 +448,11 @@ fn paint_number( ) { let scale = if let Some(value) = scale { value } else { 1.0 }; assert!((0..=9_999).contains(&number)); - match show_arabic_numeral { - Some(true) => { - match number { - 0..=999 => ui.label(number.to_string()), - _ => ui.label(format!("{},{:003}", number / 1000, number % 1000)), - }; - } - None | Some(false) => {} + if let Some(true) = show_arabic_numeral { + match number { + 0..=999 => ui.label(number.to_string()), + _ => ui.label(format!("{},{:003}", number / 1000, number % 1000)), + }; } let size = Vec2::splat(scale * 34.0);