Skip to content

Commit 3a838b0

Browse files
committed
Add comment explaining the use of Option for inner
1 parent f0827c4 commit 3a838b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nrf-hal-common/src/i2s.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ pub enum I2SEvent {
602602

603603
/// A DMA transfer
604604
pub struct Transfer<B> {
605+
// FIXME: Always `Some`, only using `Option` here to allow moving fields out of `inner`.
605606
inner: Option<Inner<B>>,
606607
}
607608

@@ -635,6 +636,7 @@ impl<B> Drop for Transfer<B> {
635636
}
636637
/// A full duplex DMA transfer
637638
pub struct TransferFullDuplex<TxB, RxB> {
639+
// FIXME: Always `Some`, only using `Option` here to allow moving fields out of `inner`.
638640
inner: Option<InnerFullDuplex<TxB, RxB>>,
639641
}
640642

0 commit comments

Comments
 (0)