mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-25 06:35:07 +02:00
refactor: fix clippy warnings for 1.88.0 (#1748)
This commit is contained in:
parent
760a2bc884
commit
0f878c4ae2
@ -46,7 +46,7 @@ impl TimeChart<'_> {
|
||||
.iter_along_base(times)
|
||||
.rev()
|
||||
.map(|(&time, &val)| {
|
||||
let from_start = current_time.duration_since(time).as_millis() as f64 * -1.0;
|
||||
let from_start = -(current_time.duration_since(time).as_millis() as f64);
|
||||
|
||||
// XXX: Should this be generic over dataset.graph_type instead? That would allow us to move
|
||||
// transformations behind a type - however, that also means that there's some complexity added.
|
||||
|
@ -193,12 +193,12 @@ impl Painter {
|
||||
|
||||
vec![
|
||||
GraphData::default()
|
||||
.name(format!("RX: {:<10} All: {}", rx_label, total_rx_label).into())
|
||||
.name(format!("RX: {rx_label:<10} All: {total_rx_label}").into())
|
||||
.time(time)
|
||||
.values(rx_points)
|
||||
.style(self.styles.rx_style),
|
||||
GraphData::default()
|
||||
.name(format!("TX: {:<10} All: {}", tx_label, total_tx_label).into())
|
||||
.name(format!("TX: {tx_label:<10} All: {total_tx_label}").into())
|
||||
.time(time)
|
||||
.values(tx_points)
|
||||
.style(self.styles.tx_style),
|
||||
|
Loading…
x
Reference in New Issue
Block a user