Skip to content

Commit 6a854b1

Browse files
committed
Make Volatile repr(transparent)
Fixes #7
1 parent 7aa9df1 commit 6a854b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use core::ptr;
3535
///
3636
/// The size of this struct is the same as the size of the contained type.
3737
#[derive(Debug)]
38+
#[repr(transparent)]
3839
pub struct Volatile<T: Copy>(T);
3940

4041
impl<T: Copy> Volatile<T> {

0 commit comments

Comments
 (0)