diff --git a/nrf-hal-common/src/i2s.rs b/nrf-hal-common/src/i2s.rs index 17192404..ece6f463 100644 --- a/nrf-hal-common/src/i2s.rs +++ b/nrf-hal-common/src/i2s.rs @@ -267,7 +267,7 @@ impl I2S { pub fn rx(mut self, mut buffer: B) -> Result, Error> where W: SupportedWordSize, - B: WriteBuffer, + B: WriteBuffer + 'static, { let (ptr, len) = unsafe { buffer.write_buffer() }; if ptr as u32 % 4 != 0 { @@ -300,8 +300,8 @@ impl I2S { ) -> Result, Error> where W: SupportedWordSize, - TxB: ReadBuffer, - RxB: WriteBuffer, + TxB: ReadBuffer + 'static, + RxB: WriteBuffer + 'static, { let (rx_ptr, rx_len) = unsafe { rx_buffer.write_buffer() }; let (tx_ptr, tx_len) = unsafe { tx_buffer.read_buffer() }; @@ -345,7 +345,7 @@ impl I2S { pub fn tx(mut self, buffer: B) -> Result, Error> where W: SupportedWordSize, - B: ReadBuffer, + B: ReadBuffer + 'static, { let (ptr, len) = unsafe { buffer.read_buffer() }; if ptr as u32 % 4 != 0 { @@ -602,6 +602,7 @@ pub enum I2SEvent { /// A DMA transfer pub struct Transfer { + // FIXME: Always `Some`, only using `Option` here to allow moving fields out of `inner`. inner: Option>, } @@ -635,6 +636,7 @@ impl Drop for Transfer { } /// A full duplex DMA transfer pub struct TransferFullDuplex { + // FIXME: Always `Some`, only using `Option` here to allow moving fields out of `inner`. inner: Option>, }