From a1dee3e47aff1b2e7bc376114d1b2f570e58b619 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Fri, 21 Oct 2022 20:22:09 -0700 Subject: [PATCH] embedded-hal-async: fix compilation on latest nightly --- embedded-hal-async/src/spi.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/embedded-hal-async/src/spi.rs b/embedded-hal-async/src/spi.rs index 28a7e0a9b..6d1682ba3 100644 --- a/embedded-hal-async/src/spi.rs +++ b/embedded-hal-async/src/spi.rs @@ -13,28 +13,28 @@ where T: SpiDevice + ?Sized + 'a, T::Bus: SpiBusRead, Word: Copy + 'static, -= impl Future>; += impl Future> + 'a; type WriteFuture<'a, T, Word> where T: SpiDevice + ?Sized + 'a, T::Bus: SpiBusWrite, Word: Copy + 'static, -= impl Future>; += impl Future> + 'a; type TransferFuture<'a, T, Word> where T: SpiDevice + ?Sized + 'a, T::Bus: SpiBus, Word: Copy + 'static, -= impl Future>; += impl Future> + 'a; type TransferInPlaceFuture<'a, T, Word> where T: SpiDevice + ?Sized + 'a, T::Bus: SpiBus, Word: Copy + 'static, -= impl Future>; += impl Future> + 'a; #[macro_export] /// Do an SPI transaction on a bus. @@ -488,7 +488,7 @@ where { type Bus = BUS; - type TransactionFuture<'a, R, F, Fut> = impl Future> + type TransactionFuture<'a, R, F, Fut> = impl Future> + 'a where Self: 'a, R: 'a, F: FnOnce(*mut Self::Bus) -> Fut + 'a, Fut: Future::Error>> + 'a;