refactor: fix clippy warnings for 1.88.0 (#1748)

This commit is contained in:
Clement Tsang 2025-06-26 18:47:56 -04:00 committed by GitHub
parent 760a2bc884
commit 0f878c4ae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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),