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

Tidy Result/Option use #29

Merged
merged 8 commits into from
Sep 7, 2018
Merged

Tidy Result/Option use #29

merged 8 commits into from
Sep 7, 2018

Conversation

Freaky
Copy link
Contributor

@Freaky Freaky commented Sep 7, 2018

Removes use of try! and try_none!, amongst various other cleanups.

7eda2c0 slightly changes base64 handling: vertical tabs weren't getting stripped. I think this is reasonable.

Copy link
Owner

@staktrace staktrace left a comment

Choose a reason for hiding this comment

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

Do you know how this (edit: referring to try_none! replacement) works? It seems to me that assumes Option implements std::ops::Try but according to the docs that's only the case on the Nightly channel. And yet these patches are passing CI which builds on beta and release rust as well.

@Freaky
Copy link
Contributor Author

Freaky commented Sep 7, 2018

It was added in 1.22.0:

Option<T> now impls Try This allows for using ? with Option types.

@staktrace
Copy link
Owner

Ok, great!

@staktrace staktrace merged commit 30baefc into staktrace:master Sep 7, 2018
@staktrace
Copy link
Owner

Thanks for the patches and particularly for keeping each change in a separate patch, it makes it nice and easy to review :)

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