refactor: remove literal suffix (#974)

its not needed and can just be assumed

related: clippy::(un)separated_literal_suffix
This commit is contained in:
EdJoPaTo 2024-03-03 13:23:21 +01:00 committed by Josh McKinney
parent 58b6e0be0f
commit 9b3b23ac14
No known key found for this signature in database
GPG key ID: 722287396A903BC5
2 changed files with 2 additions and 2 deletions

View file

@ -530,7 +530,7 @@ impl BarChart<'_> {
.max()
.unwrap_or_default()
})
.max(1u64)
.max(1)
}
fn render_labels_and_values(

View file

@ -174,7 +174,7 @@ impl Sparkline<'_> {
let max = match self.max {
Some(v) => v,
None => *self.data.iter().max().unwrap_or(&1u64),
None => *self.data.iter().max().unwrap_or(&1),
};
let max_index = min(spark_area.width as usize, self.data.len());
let mut data = self