]> git.hungrycats.org Git - linux/commit
rust: alloc: cleanup doctest imports to "kernel vertical" style
authorDanilo Krummrich <dakr@kernel.org>
Wed, 13 May 2026 19:09:16 +0000 (21:09 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 20 May 2026 15:34:17 +0000 (17:34 +0200)
commitec51531fb8efda9b75316111c040dd756f815b0c
tree38a38ce7836570f99a4380ad10767710e9d364eb
parent9b25d4111e913b74a1756601449484c44fc58842
rust: alloc: cleanup doctest imports to "kernel vertical" style

Change all imports in the alloc module's doctests to use the "kernel
vertical" import style [1].

While at it, drop imports that are automatically included in doctests.

Link: https://docs.kernel.org/rust/coding-guidelines.html#imports
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260513190946.619810-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/allocator.rs
rust/kernel/alloc/kbox.rs
rust/kernel/alloc/kvec.rs
rust/kernel/alloc/layout.rs