Skip to content

Commit f96f5b4

Browse files
data_types: impl Align for [u8]
This will allow `make_boxed` to be used in `get_variable_boxed`.
1 parent 233a33a commit f96f5b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

uefi/src/data_types/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ pub trait Align {
137137
}
138138
}
139139

140+
impl Align for [u8] {
141+
fn alignment() -> usize {
142+
1
143+
}
144+
}
145+
140146
mod guid;
141147
pub use guid::{Guid, Identify};
142148

0 commit comments

Comments
 (0)