Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzywilczek committed Oct 5, 2023
1 parent a064109 commit 2d2c806
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui/chart_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ impl<'a, 'b> Widget for ChartWrapper<'a, 'b> {
})
.collect();

let label_suffix = self
.label_suffix
.map(String::from)
.unwrap_or_else(String::new);
let label_suffix = self.label_suffix.map(String::from).unwrap_or_default();

let mut chart = Chart::new(datasets)
.x_axis(Axis::default().bounds([0.0, HISTORY_LEN as f64]))
Expand Down

0 comments on commit 2d2c806

Please sign in to comment.