Skip to content

Commit

Permalink
Implement Debug for Align4. (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 authored Jan 6, 2024
1 parent 7d615a4 commit d6ad286
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ pub mod video;
/// If the size of the value held is already a multiple of 4 then this will be
/// the same size as the wrapped value. Otherwise the compiler will add
/// sufficient padding bytes on the end to make the size a multiple of 4.
#[derive(Debug)]
#[repr(C, align(4))]
pub struct Align4<T>(pub T);

Expand Down

0 comments on commit d6ad286

Please sign in to comment.