about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2025-04-12 23:20:51 +0200
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2025-04-12 23:38:26 +0200
commitac761f28d15764887a0a1df4fa9067dcc7e0e94f (patch)
treead3873a3b139d62d5c00b8409d042af95dd364ec /library/std/src
parentc73cfb83b7b7855f19603420990775ebb3d32d95 (diff)
downloadrust-ac761f28d15764887a0a1df4fa9067dcc7e0e94f.tar.gz
rust-ac761f28d15764887a0a1df4fa9067dcc7e0e94f.zip
https://github.com/rust-lang/rust/pull/139717#issuecomment-2799036117 🥴
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sys/pal/unix/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/mod.rs b/library/std/src/sys/pal/unix/mod.rs
index 20b670fdd19..ebfc92ebfee 100644
--- a/library/std/src/sys/pal/unix/mod.rs
+++ b/library/std/src/sys/pal/unix/mod.rs
@@ -61,9 +61,9 @@ pub unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
     }
 
     unsafe fn sanitize_standard_fds() {
-        #[allow(dead_code)]
+        #[allow(dead_code, unused_variables, unused_mut)]
         let mut opened_devnull = -1;
-        #[allow(dead_code)]
+        #[allow(dead_code, unused_variables, unused_mut)]
         let mut open_devnull = || {
             #[cfg(not(all(target_os = "linux", target_env = "gnu")))]
             use libc::open;