Skip to content

Commit ae3536e

Browse files
authored
Add #[inline] to Layout::is_size_align_valid
1 parent 97b131c commit ae3536e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/alloc/layout.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ impl Layout {
6565
}
6666
}
6767

68+
#[inline]
6869
const fn is_size_align_valid(size: usize, align: usize) -> bool {
6970
let Some(align) = Alignment::new(align) else { return false };
7071
if size > Self::max_size_for_align(align) {

0 commit comments

Comments
 (0)