Skip to content

Commit 1667169

Browse files
committed
qdl: types: Automatically impl QdlReadWrite for mut refs to implementers
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
1 parent ab265b0 commit 1667169

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qdl/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pub trait QdlChan {
9292
}
9393

9494
pub trait QdlReadWrite: Read + Write + Send + Sync {}
95+
impl<T> QdlReadWrite for &mut T where T: QdlReadWrite {}
9596

9697
pub struct QdlDevice<'a> {
9798
pub rw: &'a mut dyn QdlReadWrite,

0 commit comments

Comments
 (0)