Skip to content

Commit bf217b3

Browse files
committed
Inline comment
1 parent 3e62af2 commit bf217b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tlsf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ 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,
159-
// and the size precondition is upheld by the caller.
158+
// SAFETY: `layout.align()` is a power of two, and the size precondition is upheld by the caller.
160159
let new_layout =
161160
unsafe { core::alloc::Layout::from_size_align_unchecked(new_size, layout.align()) };
162161
self.realloc(ptr, new_layout)

0 commit comments

Comments
 (0)