Skip to content

Commit 1b0f408

Browse files
committed
Implement core::error::Error
1 parent dec19b4 commit 1b0f408

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

riscv-types/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111

12+
- Bump MSRV to 1.81 due to `core::error::Error` trait
1213
- Mark `result::Error` as `#[non_exhaustive]` to allow non-breaking new variants
1314
- Renamed crate to `riscv-types` as per [#351](https://github.com/rust-embedded/riscv/issues/351)
1415

16+
### Added
17+
18+
- Implement `core::error::Error` for `result::Error`
19+
1520
## riscv-pac [v0.2.0] - 2024-10-19
1621

1722
### Added

riscv-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "riscv-types"
33
version = "0.1.0"
44
edition = "2021"
5-
rust-version = "1.60"
5+
rust-version = "1.81"
66
repository = "https://github.com/rust-embedded/riscv"
77
authors = ["The RISC-V Team <risc-v@teams.rust-embedded.org>"]
88
categories = ["embedded", "hardware-support", "no-std"]

riscv-types/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project is developed and maintained by the [RISC-V team][team].
1111

1212
## Minimum Supported Rust Version (MSRV)
1313

14-
This crate is guaranteed to compile on stable Rust 1.60 and up. It *might*
14+
This crate is guaranteed to compile on stable Rust 1.81 and up. It *might*
1515
compile with older versions but that may change in any new patch release.
1616

1717
## License

riscv-types/src/result.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ impl fmt::Display for Error {
5757
}
5858
}
5959
}
60+
61+
impl core::error::Error for Error {}

0 commit comments

Comments
 (0)