mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Add safety comment that was missed
This commit is contained in:
parent
80f14f61df
commit
c42b8ad91b
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ pub struct Quad {
|
|||
pub border_width: f32,
|
||||
}
|
||||
|
||||
// Safety: Pod's contract says the type must
|
||||
// not have any padding, and must be repr(C).
|
||||
// As currrently defined, Quad does not have
|
||||
// any padding.
|
||||
unsafe impl bytemuck::Pod for Quad {}
|
||||
unsafe impl bytemuck::Zeroable for Quad {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue