File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -968,7 +968,7 @@ impl Socket {
968
968
/// For more information about this option, see [`set_passcred`].
969
969
///
970
970
/// [`set_passcred`]: Socket::set_passcred
971
- #[ cfg( all ( unix , any( target_os = "linux" , target_os = "cygwin" ) ) ) ]
971
+ #[ cfg( any( target_os = "linux" , target_os = "cygwin" ) ) ]
972
972
pub fn passcred ( & self ) -> io:: Result < bool > {
973
973
unsafe {
974
974
getsockopt :: < c_int > ( self . as_raw ( ) , sys:: SOL_SOCKET , sys:: SO_PASSCRED )
@@ -980,7 +980,7 @@ impl Socket {
980
980
///
981
981
/// If this option is enabled, enables the receiving of the `SCM_CREDENTIALS`
982
982
/// control messages.
983
- #[ cfg( all ( unix , any( target_os = "linux" , target_os = "cygwin" ) ) ) ]
983
+ #[ cfg( any( target_os = "linux" , target_os = "cygwin" ) ) ]
984
984
pub fn set_passcred ( & self , passcred : bool ) -> io:: Result < ( ) > {
985
985
unsafe {
986
986
setsockopt (
You can’t perform that action at this time.
0 commit comments