diff --git a/lightproc/src/layout_helpers.rs b/lightproc/src/layout_helpers.rs index 63eb6414..feb29761 100644 --- a/lightproc/src/layout_helpers.rs +++ b/lightproc/src/layout_helpers.rs @@ -2,7 +2,7 @@ use std::alloc::Layout; use std::io::{Error, ErrorKind}; #[inline] -pub fn extend(layout: Layout, next: Layout) -> (Layout, usize) { +pub(crate) fn extend(layout: Layout, next: Layout) -> (Layout, usize) { let new_align = std::cmp::max(layout.align(), next.align()); let pad = padding_needed_for(layout, next.align());