Skip to content

Conversation

@ZeroErrors
Copy link
Contributor

Changes

  • Move from failure to anyhow for error handling

Description

As of failure 0.1.8 it has been deprecated (rust-lang-nursery/failure#347) in favor of using standard rust errors and it is recommended to do that via libraries such as anyhow or thiserror.

I chose to go with anyhow as its the simplest to convert over to and also since cargo-binutils isn't expected to be used as a library I see no need for more detailed error types (See: dtolnay/anyhow#comparison-to-thiserror).


Note: failure isn't fully removed yet as the rustc-cfg dependency uses failure. I have opened a PR on that repo to hopefully get that changed (japaric/rustc-cfg#12)

r? @therealprof

Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, I take it.

Any more changes in the queue? Seems like a good time to do a release otherwise. ;)

bors r+

@bors
Copy link
Contributor

bors bot commented May 20, 2020

Build succeeded:

@bors bors bot merged commit 87a0f3e into rust-embedded:master May 20, 2020
@ZeroErrors ZeroErrors deleted the anyhow branch May 21, 2020 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants