[windows_kext] Fix some clippy warnings

This commit is contained in:
Vladimir Stoilov
2024-06-28 16:12:07 +03:00
parent 81bee82b8f
commit ea59c11d0d
8 changed files with 18 additions and 26 deletions

View File

@@ -43,8 +43,8 @@ unsafe impl GlobalAlloc for WindowsAllocator {
}
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
let pool = self.alloc(layout);
pool
self.alloc(layout)
}
unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {