Skip to content

Commit 89303b4

Browse files
committed
Add comment explaining the use of Option for inner
1 parent 34358a0 commit 89303b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nrf-hal-common/src/twis.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ pub enum TwiEvent {
496496

497497
/// A DMA transfer
498498
pub struct Transfer<T: Instance, B> {
499+
// FIXME: Always `Some`, only using `Option` here to allow moving fields out of `inner`.
499500
inner: Option<Inner<T, B>>,
500501
}
501502

0 commit comments

Comments
 (0)