Skip to content

Commit

Permalink
Remove part about Error not being no_std (#2369)
Browse files Browse the repository at this point in the history
This reverts #1005 now that Rust 1.81 has stabilized the `Error` trait.
  • Loading branch information
mgeisler authored Sep 18, 2024
1 parent d2bc223 commit 7a6abee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/error-handling/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ a good option in a program where you just want to display the error message
somewhere.

Make sure to implement the `std::error::Error` trait when defining a custom
error type so it can be boxed. But if you need to support the `no_std`
attribute, keep in mind that the `std::error::Error` trait is currently
compatible with `no_std` in
[nightly](https://github.com/rust-lang/rust/issues/103765) only.
error type so it can be boxed.

</details>

0 comments on commit 7a6abee

Please sign in to comment.