mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
refactor: remove literal suffix (#974)
its not needed and can just be assumed related: clippy::(un)separated_literal_suffix
This commit is contained in:
parent
58b6e0be0f
commit
9b3b23ac14
2 changed files with 2 additions and 2 deletions
|
@ -530,7 +530,7 @@ impl BarChart<'_> {
|
|||
.max()
|
||||
.unwrap_or_default()
|
||||
})
|
||||
.max(1u64)
|
||||
.max(1)
|
||||
}
|
||||
|
||||
fn render_labels_and_values(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue