From 475075fda770bd77c492c7a8fff57b228cf5b158 Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Thu, 16 Nov 2023 18:35:07 -0700 Subject: [PATCH] Update message_handler.rs --- .../acars_connection_manager/src/message_handler.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rust/libraries/acars_connection_manager/src/message_handler.rs b/rust/libraries/acars_connection_manager/src/message_handler.rs index 97d2b04e..ec50a7e9 100644 --- a/rust/libraries/acars_connection_manager/src/message_handler.rs +++ b/rust/libraries/acars_connection_manager/src/message_handler.rs @@ -333,7 +333,13 @@ pub async fn print_stats( for freq in frequencies.lock().await.iter_mut() { let percentage: f64 = (freq.count as f64 / total_all_time_locked as f64) * 100.0; - output.push_str(format!("{} {}: {}/{} ({:.2}%)\n", queue_type, freq.freq, freq.count, total_all_time_locked, percentage)); + output.push_str( + format!( + "{} {}: {}/{} ({:.2}%)\n", + queue_type, freq.freq, freq.count, total_all_time_locked, percentage + ) + .as_str(), + ); } println!("{}", output);