Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
windows
  • Loading branch information
ShaharNaveh committed May 15, 2026
commit 3c03239e567f1a66e4ac31a0b9ea6e4552cde2e7
2 changes: 1 addition & 1 deletion crates/stdlib/src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ mod mmap {
Self::Read(mmap) => &mmap[..],
Self::Write(mmap) => &mmap[..],
#[cfg(windows)]
MmapObj::Named(named) => unsafe {
Self::Named(named) => unsafe {
core::slice::from_raw_parts(named.view_ptr, named.len)
},
}
Expand Down
6 changes: 3 additions & 3 deletions crates/stdlib/src/multiprocessing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mod _multiprocessing {
if handle == 0 as HANDLE {
return Err(vm.new_last_os_error());
}
Ok(SemHandle { raw: handle })
Ok(Self { raw: handle })
}

#[inline]
Expand Down Expand Up @@ -272,7 +272,7 @@ mod _multiprocessing {
vm: &VirtualMachine,
) -> PyResult {
// On Windows, _rebuild receives the handle directly (no sem_open)
let zelf = SemLock {
let zelf = Self {
handle: SemHandle {
raw: handle as HANDLE,
},
Expand Down Expand Up @@ -349,7 +349,7 @@ mod _multiprocessing {
let handle = SemHandle::create(args.value, args.maxvalue, vm)?;
let name = if args.unlink { None } else { Some(args.name) };

Ok(SemLock {
Ok(Self {
handle,
kind: args.kind,
maxvalue: args.maxvalue,
Expand Down
2 changes: 1 addition & 1 deletion crates/stdlib/src/overlapped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ mod _overlapped {
error: 0,
data: OverlappedData::None,
};
Ok(Overlapped {
Ok(Self {
inner: PyMutex::new(inner),
})
}
Expand Down
Loading