Skip to content

Commit 4f3d9da

Browse files
committed
docs
1 parent a901456 commit 4f3d9da

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ You also need to add some dependencies to your `Cargo.toml`:
8989

9090
```toml
9191
[dependencies]
92-
embedded-hal = "0.2"
92+
embedded-hal = "1.0"
9393
nb = "1"
9494
cortex-m = "0.7"
9595
cortex-m-rt = "0.7"
9696
# Panic behaviour, see https://crates.io/keywords/panic-impl for alternatives
97-
panic-halt = "0.2"
97+
panic-halt = "1.0"
9898

9999
[dependencies.stm32f4xx-hal]
100-
version = "0.22.1"
100+
version = "0.23.0"
101101
features = ["stm32f407"] # replace the model of your microcontroller here
102102
# and add other required features
103103
```

src/spi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ pub struct Inner<SPI: Instance> {
161161

162162
/// Spi in Master mode
163163
#[derive(Debug)]
164+
#[allow(clippy::type_complexity)]
164165
pub struct Spi<SPI: Instance, const BIDI: bool = false, W = u8> {
165166
inner: Inner<SPI>,
166167
pins: (Option<SPI::Sck>, Option<SPI::Miso>, Option<SPI::Mosi>),
@@ -182,6 +183,7 @@ impl<SPI: Instance, const BIDI: bool, W> DerefMut for Spi<SPI, BIDI, W> {
182183

183184
/// Spi in Slave mode
184185
#[derive(Debug)]
186+
#[allow(clippy::type_complexity)]
185187
pub struct SpiSlave<SPI: Instance, const BIDI: bool = false, W = u8> {
186188
inner: Inner<SPI>,
187189
pins: (

0 commit comments

Comments
 (0)