transfer should have a lifetime on the item you're passing in

This commit is contained in:
Gwilym Inzani 2024-02-21 11:33:09 +00:00
parent de15538d42
commit edcd37c203

View file

@ -60,7 +60,7 @@ impl Dma {
pub unsafe fn hblank_transfer<'a, T>(
&'a self,
location: &DmaControllable<T>,
values: &[T],
values: &'a [T],
) -> DmaTransferHandle<'a, T>
where
T: Copy,