Skip to content

Commit f072c3c

Browse files
committed
Revert to multilien comments
1 parent bf217b3 commit f072c3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tlsf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ unsafe impl GlobalAlloc for Heap {
155155
}
156156

157157
unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
158-
// SAFETY: `layout.align()` is a power of two, and the size precondition is upheld by the caller.
158+
// SAFETY: `layout.align()` is a power of two, and the size precondition
159+
// is upheld by the caller.
159160
let new_layout =
160161
unsafe { core::alloc::Layout::from_size_align_unchecked(new_size, layout.align()) };
161162
self.realloc(ptr, new_layout)

0 commit comments

Comments
 (0)