Skip to content

Commit 055a619

Browse files
authored
Merge pull request #644 from jamesmunns/james/bus-0_3
Update `embedded-hal-bus` version for release
2 parents 9941a64 + 10f1509 commit 055a619

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

embedded-hal-bus/CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Your change here!
11+
12+
## [v0.3.0] - 2025-01-21
13+
14+
- `AtomicDevice` now requires enabling feature `portable-atomic` on `thumbv6m-none-eabi` and other targets that don't have atomic CAS.
1015
- Added the `alloc` feature.
1116
- Added a new `RcDevice` for I2C and SPI, a reference-counting equivalent to `RefCellDevice`.
1217
- Migrated `std` feature-gated `std::error::Error` implementations to `core::error::Error`
@@ -64,7 +69,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6469

6570
First release to crates.io
6671

67-
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.2.0...HEAD
72+
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.3.0...HEAD
73+
[v0.3.0]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.2.0...embedded-hal-bus-v0.3.0
6874
[v0.2.0]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0...embedded-hal-bus-v0.2.0
6975
[v0.1.0]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-rc.3...embedded-hal-bus-v0.1.0
7076
[v0.1.0-rc.3]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-rc.2...embedded-hal-bus-v0.1.0-rc.3

embedded-hal-bus/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
1212
name = "embedded-hal-bus"
1313
readme = "README.md"
1414
repository = "https://github.com/rust-embedded/embedded-hal"
15-
version = "0.2.0"
15+
version = "0.3.0"
1616

1717
[features]
1818
# Enable shared bus implementations using `std::sync::Mutex`

embedded-hal-bus/src/i2c/mutex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ impl<'a, T> MutexDevice<'a, T> {
1919
}
2020
}
2121

22-
impl<'a, T> ErrorType for MutexDevice<'a, T>
22+
impl<T> ErrorType for MutexDevice<'_, T>
2323
where
2424
T: I2c,
2525
{
2626
type Error = T::Error;
2727
}
2828

29-
impl<'a, T> I2c for MutexDevice<'a, T>
29+
impl<T> I2c for MutexDevice<'_, T>
3030
where
3131
T: I2c,
3232
{

embedded-hal-bus/src/spi/mutex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ impl<'a, BUS, CS> MutexDevice<'a, BUS, CS, super::NoDelay> {
7070
}
7171
}
7272

73-
impl<'a, BUS, CS, D> ErrorType for MutexDevice<'a, BUS, CS, D>
73+
impl<BUS, CS, D> ErrorType for MutexDevice<'_, BUS, CS, D>
7474
where
7575
BUS: ErrorType,
7676
CS: OutputPin,
7777
{
7878
type Error = DeviceError<BUS::Error, CS::Error>;
7979
}
8080

81-
impl<'a, Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'a, BUS, CS, D>
81+
impl<Word: Copy + 'static, BUS, CS, D> SpiDevice<Word> for MutexDevice<'_, BUS, CS, D>
8282
where
8383
BUS: SpiBus<Word>,
8484
CS: OutputPin,

0 commit comments

Comments
 (0)