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 +}