Skip to content

Commit 708814c

Browse files
committed
Add 'static bounds to dma buffers
1 parent 717fa4c commit 708814c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nrf-hal-common/src/twis.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ where
400400
#[allow(unused_mut)]
401401
pub fn rx<W, B>(mut self, mut buffer: B) -> Result<Transfer<T, B>, Error>
402402
where
403-
B: WriteBuffer<Word = W>,
403+
B: WriteBuffer<Word = W> + 'static,
404404
{
405405
let (ptr, len) = unsafe { buffer.write_buffer() };
406406
let maxcnt = len * core::mem::size_of::<W>();
@@ -428,7 +428,7 @@ where
428428
#[allow(unused_mut)]
429429
pub fn tx<W, B>(mut self, buffer: B) -> Result<Transfer<T, B>, Error>
430430
where
431-
B: ReadBuffer<Word = W>,
431+
B: ReadBuffer<Word = W> + 'static,
432432
{
433433
let (ptr, len) = unsafe { buffer.read_buffer() };
434434
let maxcnt = len * core::mem::size_of::<W>();

0 commit comments

Comments
 (0)