File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use alloc:: { string:: String , vec:: Vec } ;
22use std:: io;
33
4- use crate :: { crt_fd, suppress_iph } ;
4+ use crate :: crt_fd;
55use windows_sys:: Win32 :: System :: Diagnostics :: Debug ;
66
77pub const LK_UNLCK : i32 = 0 ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use windows_sys::Win32::{
1010 } ,
1111} ;
1212
13+ #[ allow( clippy:: not_unsafe_ptr_arg_deref) ]
1314pub fn win32_hchmod ( handle : HANDLE , mode : u32 , write_bit : u32 ) -> io:: Result < ( ) > {
1415 let mut info: FILE_BASIC_INFO = unsafe { core:: mem:: zeroed ( ) } ;
1516 let ret = unsafe {
Original file line number Diff line number Diff line change @@ -2787,13 +2787,13 @@ mod _socket {
27872787 }
27882788 #[ cfg( windows) ]
27892789 {
2790- use crate :: select;
2790+ use rustpython_host_env :: select as host_select ;
27912791
27922792 let fd = sock_fileno ( sock) ;
27932793
2794- let mut reads = select :: FdSet :: new ( ) ;
2795- let mut writes = select :: FdSet :: new ( ) ;
2796- let mut errs = select :: FdSet :: new ( ) ;
2794+ let mut reads = host_select :: FdSet :: new ( ) ;
2795+ let mut writes = host_select :: FdSet :: new ( ) ;
2796+ let mut errs = host_select :: FdSet :: new ( ) ;
27972797
27982798 let fd = fd as usize ;
27992799 match kind {
@@ -2805,12 +2805,12 @@ mod _socket {
28052805 }
28062806 }
28072807
2808- let mut interval = interval. map ( |dur| select :: timeval {
2808+ let mut interval = interval. map ( |dur| host_select :: timeval {
28092809 tv_sec : dur. as_secs ( ) as _ ,
28102810 tv_usec : dur. subsec_micros ( ) as _ ,
28112811 } ) ;
28122812
2813- select :: select (
2813+ host_select :: select (
28142814 fd as i32 + 1 ,
28152815 & mut reads,
28162816 & mut writes,
You can’t perform that action at this time.
0 commit comments