Skip to content

Commit 2d80c94

Browse files
committed
Update dependencies
1 parent da834eb commit 2d80c94

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ license = "MIT OR Apache-2.0"
1313
[dependencies]
1414
cfg-if = "1.0.0"
1515

16-
embassy-time = { version = "0.1.5", git = "https://github.com/embassy-rs/embassy/", rev = "fe8c46bce329efe7921386dd46a493f607453bd8" }
17-
embedded-hal-async = "1.0.0-rc.2"
18-
embedded-hal = "1.0.0-rc.2"
16+
embassy-time = { version = "0.3.2" }
17+
embedded-hal-async = "1.0.0"
18+
embedded-hal = "1.0.0"
1919
defmt = { version = "0.3.5", optional = true }
2020

2121
tokio = { version = "1.34.0", default-features = false, optional = true }
2222

2323
[dev-dependencies]
24-
embedded-hal-mock = { version = "0.10.0-rc.3", default-features = false, features = [
24+
embedded-hal-mock = { version = "0.10.0", default-features = false, features = [
2525
"eh1",
2626
"embedded-time",
2727
"embedded-hal-async",

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ where
154154
}
155155
}
156156

157-
fn is_pin_pressed(&self) -> bool {
157+
fn is_pin_pressed(&mut self) -> bool {
158158
self.pin.is_low().unwrap_or(self.config.mode.is_pulldown()) == self.config.mode.is_pullup()
159159
}
160160

161-
fn is_pin_released(&self) -> bool {
161+
fn is_pin_released(&mut self) -> bool {
162162
!self.is_pin_pressed()
163163
}
164164

tests/events.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ impl MockPin {
151151
}
152152

153153
impl embedded_hal::digital::InputPin for MockPin {
154-
fn is_high(&self) -> Result<bool, Self::Error> {
154+
fn is_high(&mut self) -> Result<bool, Self::Error> {
155155
match self.0.try_read() {
156156
Ok(rw) => Ok(*rw),
157157
Err(_) => Err(MockError),
158158
}
159159
}
160160

161-
fn is_low(&self) -> Result<bool, Self::Error> {
161+
fn is_low(&mut self) -> Result<bool, Self::Error> {
162162
match self.0.try_read() {
163163
Ok(rw) => Ok(!*rw),
164164
Err(_) => Err(MockError),

0 commit comments

Comments
 (0)