From f3e1f898a615c6da80031f34f009a376f88cdddd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 6 Jan 2026 02:00:53 +0900 Subject: [PATCH] cargo fmt + clippy --- src/bin/rwho.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/rwho.rs b/src/bin/rwho.rs index c7775c1..4e4f3aa 100644 --- a/src/bin/rwho.rs +++ b/src/bin/rwho.rs @@ -88,14 +88,12 @@ fn old_format_user_entries(entries: &[(String, WhodUserEntry)]) -> Vec { }) .unwrap_or(0); - let result = entries + entries .iter() .map(|(hostname, user)| { old_format_user_entry(hostname, hostname_tty_width, idle_time_width, user) }) - .collect(); - - result + .collect() } fn old_format_user_entry(