Commit 474be445 authored by Miguel Ojeda's avatar Miguel Ojeda

rust: prelude: split re-exports into groups

Split the prelude re-exports into groups: first the ones coming
from the `core` crate, then `alloc`, then our own crates and
finally the ones from modules from `kernel` itself (i.e. `super`).

We are doing this manually for the moment, but ideally, long-term,
this could be automated via `rustfmt` with options such as
`group_imports` and `imports_granularity` (both currently unstable).
Reviewed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Reviewed-by: default avatarWei Liu <wei.liu@kernel.org>
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent f0c4d9fc
......@@ -11,10 +11,14 @@
//! use kernel::prelude::*;
//! ```
pub use super::{
error::{Error, Result},
pr_emerg, pr_info, ThisModule,
};
pub use alloc::{boxed::Box, vec::Vec};
pub use core::pin::Pin;
pub use alloc::{boxed::Box, vec::Vec};
pub use macros::module;
pub use super::{pr_emerg, pr_info};
pub use super::error::{Error, Result};
pub use super::ThisModule;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment