Skip to content

Commit 1737ce4

Browse files
committed
Writable::Writer needs DerefMut trait bound
Otherwise, a call to `bits` will fail to typecheck.
1 parent 73d42ff commit 1737ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub trait Readable: RegisterSpec {
2121
/// Registers marked with `Readable` can be also `modify`'ed.
2222
pub trait Writable: RegisterSpec {
2323
/// Writer type argument to `write`, et al.
24-
type Writer: core::convert::From<W<Self>> + core::ops::Deref<Target = W<Self>>;
24+
type Writer: core::convert::From<W<Self>> + core::ops::DerefMut<Target = W<Self>>;
2525
}
2626

2727
/// Reset value of the register.

0 commit comments

Comments
 (0)