1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

Merge pull request #5400 from cakebaker/who_cognitive_complexity

who: suppress cognitive_complexity lint
This commit is contained in:
Sylvestre Ledru 2023-10-13 08:53:29 +02:00 committed by GitHub
commit fa28dec39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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