X Tutup
Skip to content

Commit 0cdce3a

Browse files
Auto-format: cargo fmt --all
1 parent 6ea7862 commit 0cdce3a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

crates/stdlib/src/mmap.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ mod mmap {
3939
#[cfg(windows)]
4040
use windows_sys::Win32::{
4141
Foundation::{
42-
CloseHandle, DUPLICATE_SAME_ACCESS, DuplicateHandle, HANDLE,
43-
INVALID_HANDLE_VALUE,
42+
CloseHandle, DUPLICATE_SAME_ACCESS, DuplicateHandle, HANDLE, INVALID_HANDLE_VALUE,
4443
},
4544
Storage::FileSystem::{FILE_BEGIN, GetFileSize, SetEndOfFile, SetFilePointerEx},
4645
System::Memory::{
@@ -230,9 +229,11 @@ mod mmap {
230229
fn drop(&mut self) {
231230
unsafe {
232231
if !self.view_ptr.is_null() {
233-
UnmapViewOfFile(windows_sys::Win32::System::Memory::MEMORY_MAPPED_VIEW_ADDRESS {
234-
Value: self.view_ptr as *mut _,
235-
});
232+
UnmapViewOfFile(
233+
windows_sys::Win32::System::Memory::MEMORY_MAPPED_VIEW_ADDRESS {
234+
Value: self.view_ptr as *mut _,
235+
},
236+
);
236237
}
237238
if !self.map_handle.is_null() {
238239
CloseHandle(self.map_handle);

0 commit comments

Comments
 (0)
X Tutup