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

Turbofish operator for try_parse #68

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

daladim
Copy link
Collaborator

@daladim daladim commented Nov 7, 2022

This PR depends on #63 and #65 , as its first commits come from them.

This makes it possible to use the turbofish operator for try_parse, which is slightly more convenient than the current solution.
This improvement was already considered by @n4r1b quite a long time ago, since there was a
// TODO: Find a way to use turbofish operator

@daladim daladim changed the title Turbofish try parse Turbofish operator for try_parse Nov 7, 2022
@daladim daladim mentioned this pull request Nov 7, 2022
@daladim
Copy link
Collaborator Author

daladim commented Nov 10, 2022

Build is failing. I probably did not include all the dependant commits after all.
I'll rebase after other PR (the ones that are passing) are merged, that will be easier to rebase.

You can consider this PR as a draft for the moment

README.md Outdated
- [Shaddy](https://github.com/Shaddy) for, pretty much, teaching me all the Rust I know 😃
- [n4r1b](https://github.com/n4r1b) for creating this great crate
- [daladim](https://github.com/daladim) for adding even more features
Copy link
Owner

Choose a reason for hiding this comment

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

🥇

@n4r1b
Copy link
Owner

n4r1b commented Nov 11, 2022

This is beautiful! I was really looking forward to doing this change, thank you very much @daladim 😄🥳. Feel free to merge when ready!

@daladim daladim force-pushed the turbofish_try_parse branch 2 times, most recently from db05a70 to 9d03ce5 Compare November 14, 2022 09:37
That removes the following TODO:
// TODO: Find a way to use turbofish operator
@daladim daladim force-pushed the turbofish_try_parse branch from 9d03ce5 to 477cbfb Compare November 14, 2022 09:49
@daladim
Copy link
Collaborator Author

daladim commented Nov 14, 2022

I've rebased to fix the git conflict, without changing anything really. I'm merging

@daladim daladim merged commit 4c56435 into n4r1b:next_major_version Nov 14, 2022
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