Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NDRS-974: Get rid of failure #1077

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

mpapierski
Copy link
Collaborator

Ref: https://casperlabs.atlassian.net/browse/NDRS-974

Removes failure and uses optional thiserror for std case, and for no_std (i.e. wasm32 target) is hidden behind cfg_attr. This complication happens because thiserror does not support no_std upstream but a PR is pending dtolnay/thiserror#64

Currently thiserror crate does not support no_std so while wait for upstream PR[1]
to get merged I've used "thiserror" for std case, and for no_std
thiserror is hidden under cfg_attr.

[1]: dtolnay/thiserror#64
@mpapierski mpapierski changed the base branch from master to dev March 5, 2021 17:28
@mpapierski mpapierski marked this pull request as ready for review March 5, 2021 17:41
Copy link
Contributor

@Fraser999 Fraser999 left a comment

Choose a reason for hiding this comment

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

One nitpick, but LGTM

types/src/system/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: Fraser Hutchison <[email protected]>
@mpapierski
Copy link
Collaborator Author

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 5, 2021

Build succeeded:

@bors bors bot merged commit 43298dd into casper-network:dev Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants