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(