From 38e50596a9c86723d818df72c6a02dfb63f834d3 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Fri, 13 Nov 2026 02:10:14 +0000 Subject: [PATCH] build: fix used_underscore_binding clippy lint --- src/uu/stty/src/stty.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uu/stty/src/stty.rs b/src/uu/stty/src/stty.rs index 02227a5a222..3f2b827075b 100644 --- a/src/uu/stty/src/stty.rs +++ b/src/uu/stty/src/stty.rs @@ -894,7 +894,11 @@ fn apply_saved_state(termios: &mut Termios, state: &(CFlags, CCFlags)) { } fn apply_special_setting( - _termios: &mut Termios, + #[cfg_attr( + not(any(target_os = "linux", target_os = "android")), + expect(unused_variables) + )] + termios: &mut Termios, setting: &SpecialSetting, fd: impl AsFd, ) -> io::Result<()> { @@ -910,7 +914,7 @@ fn apply_special_setting( // nix only defines Termios's `line_discipline` field on these platforms #[cfg(any(target_os = "linux", target_os = "android"))] { - _termios.line_discipline = *n; + termios.line_discipline = *n; } } }