Skip to content

Commit

Permalink
thiserror is still cool
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Apr 4, 2020
1 parent ac47f37 commit b5c10fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/posts/reviewing-unsafe-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ crates from [*@dtolnay*][dtolnay] have helped simplify error handling in Rust a
lot.

The `thiserror` crate is a procedural macro for automating the implementation of
`std::error::Error` and isn't overly interesting for our purposes.
`std::error::Error` and isn't overly interesting for our purposes (it's still
really cool, just doesn't contain tricky `unsafe` code).

On the other hand, the `anyhow` crate presents a custom `Error` type and uses a
`unsafe` code under the hood to implement nice things like downcasting and
Expand Down

0 comments on commit b5c10fa

Please sign in to comment.