Skip to content

Commit

Permalink
style: πŸ› linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneylab committed Nov 15, 2024
1 parent 38c5f06 commit 27ac70f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,11 @@ fn paint_number(
) {
let scale = if let Some(value) = scale { value } else { 1.0 };

Check failure on line 449 in src/app.rs

View workflow job for this annotation

GitHub Actions / Clippy

this pattern reimplements `Option::unwrap_or`

Check failure on line 449 in src/app.rs

View workflow job for this annotation

GitHub Actions / Clippy

this pattern reimplements `Option::unwrap_or`
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);
Expand Down

0 comments on commit 27ac70f

Please sign in to comment.