From 383642714a5a28bdcd14689827c145d1f8c056a6 Mon Sep 17 00:00:00 2001 From: Christiaan Dirkx Date: Mon, 17 May 2021 13:49:14 +0200 Subject: [PATCH] Simplify `cfg(any(unix, target_os="redox"))` to just `cfg(unix)` --- library/std/src/ffi/os_str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index ea4b2866017..ca391ffb3d5 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -601,7 +601,7 @@ pub fn to_str(&self) -> Option<&str> { /// // sequences simply through collecting user command line arguments, for /// // example. /// - /// #[cfg(any(unix, target_os = "redox"))] { + /// #[cfg(unix)] { /// use std::ffi::OsStr; /// use std::os::unix::ffi::OsStrExt; /// -- GitLab