Skip to content

Commit 22fe8d6

Browse files
committed
refactor: move crate::utils::{vec → alloc::vec}
More items are coming to `crate::utils::alloc`.
1 parent 4345dce commit 22fe8d6

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

src/r3_core/src/utils/alloc/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! Compile-time memory allocation
2+
#[macro_use]
3+
mod vec;
4+
pub use vec::*;
File renamed without changes.

src/r3_core/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ mod binary_search;
4545
mod sort;
4646
pub(crate) use sort::*;
4747
#[macro_use]
48-
mod vec;
49-
pub use vec::*;
48+
mod alloc;
49+
pub use alloc::*;
5050
#[macro_use]
5151
pub mod for_times;
5252

src/r3_kernel/src/utils/alloc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../r3_core/src/utils/alloc

src/r3_kernel/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ pub(crate) mod pin;
5353
mod prio_bitmap;
5454
mod rawcell;
5555
#[macro_use]
56-
mod vec;
57-
pub use self::{aligned_storage::*, int::*, prio_bitmap::*, rawcell::*, vec::*};
56+
mod alloc;
57+
pub use self::{aligned_storage::*, alloc::*, int::*, prio_bitmap::*, rawcell::*};
5858
pub use r3_core::utils::{Init, ZeroInit};
5959

6060
/// A "type function" producing a type.

src/r3_kernel/src/utils/vec.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)