Skip to content

Commit c64c9af

Browse files
committed
fix(access): make Readable, Writable, and Copyable bounds consistent
Signed-off-by: Martin Kröning <[email protected]>
1 parent 25cbee3 commit c64c9af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/access.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ restrict_impl!(WriteOnly, NoAccess, NoAccess);
4949
pub trait Access: Copy + Default + private::Sealed {}
5050

5151
/// Helper trait that is implemented by [`ReadWrite`] and [`ReadOnly`].
52-
pub trait Readable: Copy + Default + private::Sealed {}
52+
pub trait Readable: Access {}
5353
impl<A: RestrictAccess<ReadOnly, Restricted = ReadOnly>> Readable for A {}
5454

5555
/// Helper trait that is implemented by [`ReadWrite`] and [`WriteOnly`].
56-
pub trait Writable: Access + private::Sealed {}
56+
pub trait Writable: Access {}
5757
impl<A: RestrictAccess<WriteOnly, Restricted = WriteOnly>> Writable for A {}
5858

5959
/// Implemented for access types that permit copying of `VolatileRef`.
60-
pub trait Copyable: private::Sealed {}
60+
pub trait Copyable: Access {}
6161
impl<A: RestrictAccess<ReadOnly, Restricted = Self>> Copyable for A {}
6262

6363
/// Zero-sized marker type for allowing both read and write access.

0 commit comments

Comments
 (0)