File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use core::ptr;
34
34
/// take and return copies of the value.
35
35
///
36
36
/// The size of this struct is the same as the size of the contained type.
37
- #[ derive( Debug ) ]
37
+ #[ derive( Debug , Default ) ]
38
38
#[ repr( transparent) ]
39
39
pub struct Volatile < T : Copy > ( T ) ;
40
40
@@ -151,7 +151,7 @@ impl<T: Copy> Clone for Volatile<T> {
151
151
/// A volatile wrapper which only allows read operations.
152
152
///
153
153
/// The size of this struct is the same as the contained type.
154
- #[ derive( Debug , Clone ) ]
154
+ #[ derive( Debug , Clone , Default ) ]
155
155
pub struct ReadOnly < T : Copy > ( Volatile < T > ) ;
156
156
157
157
impl < T : Copy > ReadOnly < T > {
@@ -208,7 +208,7 @@ impl<T: Copy> ReadOnly<T> {
208
208
/// A volatile wrapper which only allows write operations.
209
209
///
210
210
/// The size of this struct is the same as the contained type.
211
- #[ derive( Debug , Clone ) ]
211
+ #[ derive( Debug , Clone , Default ) ]
212
212
pub struct WriteOnly < T : Copy > ( Volatile < T > ) ;
213
213
214
214
impl < T : Copy > WriteOnly < T > {
You can’t perform that action at this time.
0 commit comments