Skip to content

Commit 36cb284

Browse files
CoAlloc: library/core: tidy
1 parent da31fd7 commit 36cb284

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/core/src/alloc/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ pub struct SliceAndMeta {
8484
//pub const SHORT_TERM_VEC_PREFERS_COOP: bool = true;
8585
#[macro_export]
8686
macro_rules! SHORT_TERM_VEC_PREFERS_COOP {
87-
() => {true}
87+
() => {
88+
true
89+
};
8890
}
8991

9092
#[unstable(feature = "global_co_alloc_meta", issue = "none")]
@@ -95,7 +97,9 @@ pub type SliceAndMetaResult = Result<SliceAndMeta, AllocError>;
9597
pub const fn co_alloc_metadata_num_slots<A: Allocator>() -> usize {
9698
// @FIXME later
9799
if false {
98-
panic!("FIXME - consider replacing co_alloc_metadata_num_slots() with co_alloc_metadata_num_slots_with_preference(bool), and adding const flags as appropriate.");
100+
panic!(
101+
"FIXME - consider replacing co_alloc_metadata_num_slots() with co_alloc_metadata_num_slots_with_preference(bool), and adding const flags as appropriate."
102+
);
99103
}
100104
if A::IS_CO_ALLOCATOR { 1 } else { 0 }
101105
}

0 commit comments

Comments
 (0)