Skip to content

Commit 4c45a01

Browse files
committed
reorder mod in allocator module
1 parent d1caf98 commit 4c45a01

File tree

2 files changed

+6
-5
lines changed
  • src/allocator

2 files changed

+6
-5
lines changed

src/allocator/dedicated_block_allocator/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#[cfg(feature = "std")]
33
use std::{backtrace::Backtrace, sync::Arc};
44

5-
#[cfg(feature = "visualizer")]
6-
pub(crate) mod visualizer;
75
use alloc::{
86
borrow::ToOwned,
97
string::{String, ToString},
@@ -12,6 +10,9 @@ use alloc::{
1210

1311
use log::{log, Level};
1412

13+
#[cfg(feature = "visualizer")]
14+
pub(crate) mod visualizer;
15+
1516
use super::{AllocationReport, AllocationType, SubAllocator, SubAllocatorBase};
1617
use crate::{AllocationError, Result};
1718

src/allocator/free_list_allocator/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#![deny(unsafe_code, clippy::unwrap_used)]
22

3-
#[cfg(feature = "visualizer")]
4-
pub(crate) mod visualizer;
5-
63
use alloc::{
74
borrow::ToOwned,
85
string::{String, ToString},
@@ -17,6 +14,9 @@ use std::{backtrace::Backtrace, sync::Arc};
1714
use hashbrown::{HashMap, HashSet};
1815
use log::{log, Level};
1916

17+
#[cfg(feature = "visualizer")]
18+
pub(crate) mod visualizer;
19+
2020
use super::{AllocationReport, AllocationType, SubAllocator, SubAllocatorBase};
2121
use crate::{AllocationError, Result};
2222

0 commit comments

Comments
 (0)