Skip to content

Commit fd6c7d8

Browse files
committed
Update dependencies
1 parent a4f2100 commit fd6c7d8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ readme = "README.md"
1515
repository = "https://github.com/smart-leds-rs/ws2812-spi-rs"
1616

1717
[dependencies]
18-
nb = "0.1.3"
19-
smart-leds-trait = "0.2.0"
20-
embedded-hal = "0.2.4"
18+
nb = "1.1.0"
19+
smart-leds-trait = "0.3.0"
20+
embedded-hal = "0.2.7"
2121

2222
[features]
2323
mosi_idle_high = []

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use core::marker::PhantomData;
2222

2323
use smart_leds_trait::{SmartLedsWrite, RGB8, RGBW};
2424

25-
use nb;
2625
use nb::block;
2726

2827
/// SPI mode that can be used for this crate
@@ -124,7 +123,7 @@ where
124123
/// Write all the items of an iterator to a ws2812 strip
125124
fn write<T, I>(&mut self, iterator: T) -> Result<(), E>
126125
where
127-
T: Iterator<Item = I>,
126+
T: IntoIterator<Item = I>,
128127
I: Into<Self::Color>,
129128
{
130129
// We introduce an offset in the fifo here, so there's always one byte in transit
@@ -157,7 +156,7 @@ where
157156
/// Write all the items of an iterator to a ws2812 strip
158157
fn write<T, I>(&mut self, iterator: T) -> Result<(), E>
159158
where
160-
T: Iterator<Item = I>,
159+
T: IntoIterator<Item = I>,
161160
I: Into<Self::Color>,
162161
{
163162
// We introduce an offset in the fifo here, so there's always one byte in transit

src/prerendered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ where
150150
/// Write all the items of an iterator to a ws2812 strip
151151
fn write<T, I>(&mut self, iterator: T) -> Result<(), Error<E>>
152152
where
153-
T: Iterator<Item = I>,
153+
T: IntoIterator<Item = I>,
154154
I: Into<Self::Color>,
155155
{
156156
self.index = 0;
@@ -174,7 +174,7 @@ where
174174
/// Write all the items of an iterator to a ws2812 strip
175175
fn write<T, I>(&mut self, iterator: T) -> Result<(), Error<E>>
176176
where
177-
T: Iterator<Item = I>,
177+
T: IntoIterator<Item = I>,
178178
I: Into<Self::Color>,
179179
{
180180
self.index = 0;

0 commit comments

Comments
 (0)