From 582c721aec06702dcdb808b0b5e1d08ab8dd1353 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Tue, 4 Jul 2023 11:48:59 +0200 Subject: [PATCH] Add lifetimes to the functions --- embassy-nrf/src/spim.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-nrf/src/spim.rs b/embassy-nrf/src/spim.rs index 66bbd1a8..16694793 100644 --- a/embassy-nrf/src/spim.rs +++ b/embassy-nrf/src/spim.rs @@ -521,11 +521,11 @@ mod eha { } impl<'d, T: Instance> embedded_hal_async::spi::SpiBus for Spim<'d, T> { - async fn transfer(&mut self, rx: &mut [u8], tx: &[u8]) -> Result<(), Error> { + async fn transfer<'a>(&'a mut self, rx: &'a mut [u8], tx: &'a [u8]) -> Result<(), Error> { self.transfer(rx, tx).await } - async fn transfer_in_place(&mut self, words: &mut [u8]) -> Result<(), Error> { + async fn transfer_in_place<'a>(&'a mut self, words: &'a mut [u8]) -> Result<(), Error> { self.transfer_in_place(words).await } }