File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1109,7 +1109,7 @@ pub(super) mod _os {
1109
1109
// TODO: replicate CPython's win32_xstat
1110
1110
let [ ] = dir_fd. 0 ;
1111
1111
let meta = match file {
1112
- PathOrFd :: Path ( path) => super :: fs_metadata ( & path, follow_symlinks. 0 ) ?,
1112
+ PathOrFd :: Path ( path) => super :: fs_metadata ( path, follow_symlinks. 0 ) ?,
1113
1113
PathOrFd :: Fd ( fno) => {
1114
1114
use std:: os:: windows:: io:: FromRawHandle ;
1115
1115
let handle = Fd ( fno) . to_raw_handle ( ) ?;
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ mod winreg {
258
258
value : PyStrRef ,
259
259
vm : & VirtualMachine ,
260
260
) -> PyResult < ( ) > {
261
- if typ != REG_SZ as u32 {
261
+ if typ != REG_SZ {
262
262
return Err ( vm. new_type_error ( "type must be winreg.REG_SZ" . to_owned ( ) ) ) ;
263
263
}
264
264
let subkey = subkey. as_ref ( ) . map_or ( "" , |s| s. as_str ( ) ) ;
You can’t perform that action at this time.
0 commit comments