1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 21:17:46 +00:00

who: suppress cognitive_complexity lint

This commit is contained in:
Daniel Hofstetter 2023-10-13 08:26:06 +02:00
parent f76b53d969
commit f1f4823feb

View file

@ -326,6 +326,7 @@ fn current_tty() -> String {
} }
impl Who { impl Who {
#[allow(clippy::cognitive_complexity)]
fn exec(&mut self) -> UResult<()> { fn exec(&mut self) -> UResult<()> {
let run_level_chk = |_record: i16| { let run_level_chk = |_record: i16| {
#[cfg(not(target_os = "linux"))] #[cfg(not(target_os = "linux"))]