Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Use try_from instead of the cast crate.#785

Merged
bnjbvr merged 2 commits intobytecodealliance:masterfrom
sunfishcode:try_from
Jun 3, 2019
Merged

Use try_from instead of the cast crate.#785
bnjbvr merged 2 commits intobytecodealliance:masterfrom
sunfishcode:try_from

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

Now that try_from is in stable Rust, we can use it here.

Now that `try_from` is in stable Rust, we can use it here.
1.34 was [released] on April 11, so it satisfies the stable Rust
[policy].

Notably, this version includes the new `try_from` features.

[released]: https://blog.rust-lang.org/2019/04/11/Rust-1.34.0.html
[policy]: https://github.com/CraneStation/cranelift/blob/master/CONTRIBUTING.md#rustc-version-support
Copy link
Copy Markdown
Contributor

@bjorn3 bjorn3 left a comment

Choose a reason for hiding this comment

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

+1 for less dependencies

Copy link
Copy Markdown
Collaborator

@lars-t-hansen lars-t-hansen left a comment

Choose a reason for hiding this comment

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

Looks good.

@bnjbvr bnjbvr merged commit 475aa63 into bytecodealliance:master Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants