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

Simple improvements to code and README.md #11

Merged
merged 4 commits into from
Jun 29, 2020

Conversation

evaporei
Copy link
Collaborator

Some very dummy improvements to the code and README.md.

By the way the code on rational_to_double I can change to a if/else if you prefer that, or something different, I just think it didn't need two indentations, using String, collect, and it could be safer for free

src/edn/mod.rs Outdated
assert_eq!(rational_to_double(String::from("text/moretext")), None);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This would panic before

}
None
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can add a else if you prefer here, and remove the return on Some

Copy link
Owner

@naomijub naomijub left a comment

Choose a reason for hiding this comment

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

LGTM

@naomijub naomijub merged commit 5756429 into naomijub:master Jun 29, 2020
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