Skip to content

Commit 268bbd8

Browse files
committed
Fix new (v1.66) Clippy warnings on Windows
1 parent 5701061 commit 268bbd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vm/src/stdlib/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ pub(super) mod _os {
11091109
// TODO: replicate CPython's win32_xstat
11101110
let [] = dir_fd.0;
11111111
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)?,
11131113
PathOrFd::Fd(fno) => {
11141114
use std::os::windows::io::FromRawHandle;
11151115
let handle = Fd(fno).to_raw_handle()?;

vm/src/stdlib/winreg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ mod winreg {
258258
value: PyStrRef,
259259
vm: &VirtualMachine,
260260
) -> PyResult<()> {
261-
if typ != REG_SZ as u32 {
261+
if typ != REG_SZ {
262262
return Err(vm.new_type_error("type must be winreg.REG_SZ".to_owned()));
263263
}
264264
let subkey = subkey.as_ref().map_or("", |s| s.as_str());

0 commit comments

Comments
 (0)