Skip to content

Commit 8b3fbc7

Browse files
committed
fix new clippy lints (Rust v1.88.0)
1 parent c3055b4 commit 8b3fbc7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/chart/manage_chart_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ impl TrafficChart {
1616
self.ticks += 1;
1717

1818
#[allow(clippy::cast_precision_loss)]
19-
let out_bytes_entry = -1.0 * info_traffic_msg.tot_data_info.outgoing_bytes() as f32;
19+
let out_bytes_entry = -(info_traffic_msg.tot_data_info.outgoing_bytes() as f32);
2020
#[allow(clippy::cast_precision_loss)]
2121
let in_bytes_entry = info_traffic_msg.tot_data_info.incoming_bytes() as f32;
2222
#[allow(clippy::cast_precision_loss)]
23-
let out_packets_entry = -1.0 * info_traffic_msg.tot_data_info.outgoing_packets() as f32;
23+
let out_packets_entry = -(info_traffic_msg.tot_data_info.outgoing_packets() as f32);
2424
#[allow(clippy::cast_precision_loss)]
2525
let in_packets_entry = info_traffic_msg.tot_data_info.incoming_packets() as f32;
2626

0 commit comments

Comments
 (0)