From 361f1b9ce50c0df398597a0cf28617f854343f22 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 29 Jul 2025 10:19:09 +0200 Subject: [PATCH] who: rename var, cleanup spell-checker:ignore --- src/uu/who/src/platform/unix.rs | 6 +++--- src/uu/who/src/who.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uu/who/src/platform/unix.rs b/src/uu/who/src/platform/unix.rs index 74032cb1a29..f9f322a5d25 100644 --- a/src/uu/who/src/platform/unix.rs +++ b/src/uu/who/src/platform/unix.rs @@ -3,7 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore (ToDO) ttyname hostnames runlevel mesg wtmp statted boottime deadprocs initspawn clockchange curr runlvline pidstr exitstr hoststr +// spell-checker:ignore (ToDO) ttyname hostnames runlevel mesg wtmp statted boottime deadprocs initspawn clockchange curr pidstr exitstr hoststr use crate::options; use crate::uu_app; @@ -250,14 +250,14 @@ impl Who { fn print_runlevel(&self, ut: &Utmpx) { let last = (ut.pid() / 256) as u8 as char; let curr = (ut.pid() % 256) as u8 as char; - let runlvline = translate!("who-runlevel", "level" => curr); + let runlevel_line = translate!("who-runlevel", "level" => curr); let comment = translate!("who-runlevel-last", "last" => (if last == 'N' { 'S' } else { 'N' })); self.print_line( "", ' ', - &runlvline, + &runlevel_line, &time_string(ut), "", "", diff --git a/src/uu/who/src/who.rs b/src/uu/who/src/who.rs index 0f287821546..1a139f20b8d 100644 --- a/src/uu/who/src/who.rs +++ b/src/uu/who/src/who.rs @@ -3,7 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore (ToDO) ttyname hostnames runlevel mesg wtmp statted boottime deadprocs initspawn clockchange curr runlvline pidstr exitstr hoststr +// spell-checker:ignore (ToDO) runlevel mesg use clap::{Arg, ArgAction, Command}; use uucore::format_usage;