From a345dd9e2baa7f3b3b249012cf69d39876658571 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Tue, 20 Jul 2021 10:02:33 -0400 Subject: [PATCH] More formatting! --- embassy-traits/src/spi.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/embassy-traits/src/spi.rs b/embassy-traits/src/spi.rs index d19a1e58..961da38c 100644 --- a/embassy-traits/src/spi.rs +++ b/embassy-traits/src/spi.rs @@ -24,8 +24,7 @@ pub trait Spi { type Error; } -pub trait FullDuplex : Spi + Write + Read { - +pub trait FullDuplex: Spi + Write + Read { type WriteReadFuture<'a>: Future> + 'a where Self: 'a; @@ -37,20 +36,18 @@ pub trait FullDuplex : Spi + Write + Read { ) -> Self::WriteReadFuture<'a>; } -pub trait Write : Spi{ - +pub trait Write: Spi { type WriteFuture<'a>: Future> + 'a where - Self: 'a; + Self: 'a; fn write<'a>(&'a mut self, data: &'a [Word]) -> Self::WriteFuture<'a>; } -pub trait Read : Spi{ - +pub trait Read: Spi { type ReadFuture<'a>: Future> + 'a where - Self: 'a; + Self: 'a; fn read<'a>(&'a mut self, data: &'a mut [Word]) -> Self::ReadFuture<'a>; -} \ No newline at end of file +}