File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ pub trait Writable: Access + private::Sealed {}
64
64
65
65
/// Implemented for access types that permit copying of `VolatileRef`.
66
66
pub trait Copyable : private:: Sealed { }
67
+ impl < A : RestrictAccess < ReadOnly , Restricted = Self > > Copyable for A { }
67
68
68
69
impl < T > Access for T
69
70
where
@@ -87,7 +88,6 @@ pub struct ReadOnly;
87
88
impl Readable for ReadOnly {
88
89
type RestrictShared = ReadOnly ;
89
90
}
90
- impl Copyable for ReadOnly { }
91
91
92
92
/// Zero-sized marker type for allowing only write access.
93
93
#[ derive( Debug , Default , Copy , Clone ) ]
@@ -103,7 +103,6 @@ pub struct NoAccess;
103
103
impl Access for NoAccess {
104
104
type RestrictShared = NoAccess ;
105
105
}
106
- impl Copyable for NoAccess { }
107
106
108
107
mod private {
109
108
pub trait Sealed { }
You can’t perform that action at this time.
0 commit comments