Skip to content

Commit a80854b

Browse files
committed
Fix clippy: import Layout from core::alloc instead of alloc::alloc
1 parent 30e2cf5 commit a80854b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/vm/src/datastack.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
///
77
/// Normal function calls allocate from the data stack via `push()` (pointer
88
/// bump). Generators and coroutines use heap-allocated storage instead.
9-
use alloc::alloc::{Layout, alloc, dealloc};
9+
use alloc::alloc::{alloc, dealloc};
10+
use core::alloc::Layout;
1011
use core::ptr;
1112

1213
/// Minimum chunk size in bytes (16 KB, matching CPython `_PY_DATA_STACK_CHUNK_SIZE`).

0 commit comments

Comments
 (0)