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

Fix bugs #56

Merged
merged 1 commit into from
Oct 6, 2017
Merged

Fix bugs #56

merged 1 commit into from
Oct 6, 2017

Conversation

torkleyy
Copy link
Contributor

@torkleyy torkleyy commented Oct 4, 2017

Turns out I actually used this pattern 3 times..

src/de/tests.rs Outdated
let de: Result<(i32, String)> = from_str("(4, \"Hello)");

assert!({
if let Err(Error::Parser(ParseError::ExpectedStringEnd, _)) = de {
Copy link
Collaborator

Choose a reason for hiding this comment

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

match ftw!

Copy link
Contributor Author

@torkleyy torkleyy Oct 4, 2017

Choose a reason for hiding this comment

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

How does match help here?

Copy link
Contributor

Choose a reason for hiding this comment

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

(He might be referencing the concept of pattern matching?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I just don't see the point in if let sugar over match if you take both arms and occupy more lines in the end

@Xaeroxe
Copy link
Contributor

Xaeroxe commented Oct 6, 2017

Ping @kvark

It'd be really nice to get this bug fix released as a patch version.

@torkleyy
Copy link
Contributor Author

torkleyy commented Oct 6, 2017

@Xaeroxe that's my fault, didn't address the review earlier.

@kvark
Copy link
Collaborator

kvark commented Oct 6, 2017

bors r+

bors bot added a commit that referenced this pull request Oct 6, 2017
56: Fix bugs r=kvark a=torkleyy

Turns out I actually used this pattern 3 times..
@bors
Copy link
Contributor

bors bot commented Oct 6, 2017

Build succeeded

@bors bors bot merged commit 6f34a4b into ron-rs:master Oct 6, 2017
@torkleyy torkleyy deleted the bug branch October 6, 2017 15:41
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.

3 participants