File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -70,21 +70,21 @@ impl<A: RestrictAccess<WriteOnly, Restricted = WriteOnly>> Writable for A {}
70
70
pub trait Copyable : private:: Sealed { }
71
71
impl < A : RestrictAccess < ReadOnly , Restricted = Self > > Copyable for A { }
72
72
73
- impl < T > Access for T
74
- where
75
- T : Readable + Default + Copy ,
76
- {
77
- #[ allow( deprecated) ]
78
- type RestrictShared = <T as Readable >:: RestrictShared ;
79
- }
80
-
81
73
/// Zero-sized marker type for allowing both read and write access.
82
74
#[ derive( Debug , Default , Copy , Clone ) ]
83
75
pub struct ReadWrite ;
76
+ impl Access for ReadWrite {
77
+ #[ allow( deprecated) ]
78
+ type RestrictShared = <Self as Readable >:: RestrictShared ;
79
+ }
84
80
85
81
/// Zero-sized marker type for allowing only read access.
86
82
#[ derive( Debug , Default , Copy , Clone ) ]
87
83
pub struct ReadOnly ;
84
+ impl Access for ReadOnly {
85
+ #[ allow( deprecated) ]
86
+ type RestrictShared = <Self as Readable >:: RestrictShared ;
87
+ }
88
88
89
89
/// Zero-sized marker type for allowing only write access.
90
90
#[ derive( Debug , Default , Copy , Clone ) ]
You can’t perform that action at this time.
0 commit comments