Skip to content

Commit 64667a3

Browse files
impl core::error::Error for EspError (#402)
* `impl core::error::Error for EspError` * Update CHANGELOG.md * Add `no_std` gate to core impl * Remove `std::error::Error` * Bump MSRV to 1.82
1 parent dc61350 commit 64667a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- Support for `esp32c5` and `esp32c61`
2525
- Add raw bindings for `esp_lcd_mipi_dsi.h` and `esp_ldo_regulator.h` (#398)
2626
- Pulse counter bindings for esp32p4
27+
- `impl core::error::Error for EspError`
2728

2829
### Fixed
2930
- Fix the `esp_app_desc!` macro so the reserv3 field is correct for ESP IDF v5.4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readme = "README.md"
1313
links = "esp_idf"
1414
build = "build/build.rs"
1515
documentation = "https://docs.esp-rs.org/esp-idf-sys/"
16-
rust-version = "1.66"
16+
rust-version = "1.82"
1717

1818
[lib]
1919
harness = false

src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ impl EspError {
7272
}
7373
}
7474

75-
#[cfg(feature = "std")]
76-
impl std::error::Error for EspError {}
75+
impl core::error::Error for EspError {}
7776

7877
impl fmt::Display for EspError {
7978
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

0 commit comments

Comments
 (0)