Skip to content
Merged
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
Next Next commit
Fix clippy: use core::alloc::Layout instead of alloc::alloc::Layout
  • Loading branch information
youknowone committed Mar 4, 2026
commit b96290910d9756257bc0cb1f357fe6e09209b01f
2 changes: 1 addition & 1 deletion crates/vm/src/object/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ impl<T: PyPayload> Drop for FreeList<T> {
// MAX_FREELIST per type per thread.
for ptr in self.items.drain(..) {
unsafe {
alloc::alloc::dealloc(ptr as *mut u8, alloc::alloc::Layout::new::<PyInner<T>>());
alloc::alloc::dealloc(ptr as *mut u8, core::alloc::Layout::new::<PyInner<T>>());
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
}
Expand Down