-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Cleanup for std::result #7969
Cleanup for std::result #7969
Conversation
It looks like this has also added back in net/ip and net/tcp, would you mind amending to remove those? |
Oh that is weird, I thought I deleted them. Thanks for the catch. |
* | ||
* Example: | ||
* | ||
* let res = map(read_file(file)) { |buf| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the method, not the function.
what is the best way to delete the changes to net::tcp etc in 3043b71? git checkout 3043b71 , git rm net::tcp , git commit --amend and then back with git checkout master? |
I am sorry, I am not that proficient in git yet. I am currently reading the git book. I was trying for hours to edit my commit and remove the tcp /ip changes but it didn't work out. So I just added a additional commit, that removes tcp and ip :( |
@MaikKlein: You can use an interactive rebase to clean up the history. Here are some links on how to do it:
Your case is pretty simple though, since you added the files in one commit back from the HEAD branch. You should be able to squash the two with:
Feel free to ping me on #rust IRC (erickt) if you need some help with this. If I'm not around, I'm sure someone else in the channel could help you out as well. |
Whenever this is no longer a work-in-progress, feel free to comment saying so and I'd be willing to take a look! |
Thanks, I am sorry for the mess. Next time when I do a PR I will have a proper knowledge of git. I will finish this PR now. |
I think the cleanup work is finished. If the PR is in a too messy state to be processed, then I will redo the PR in a few days. For example 58f934f is completely unecessary the commit somehow got merged with 2edf6d2, and the libextra/net removal is in 9593c14 . I really have to learn some git, I just thought git would be more straight forward. I just removed the functions in std::result.rs. They are all methods now. I updated the examples. I also added a ToEither trait for the to_either method. |
everything compiles and all tests pass now |
@MaikKlein: Just in case you didn't notice, there were some errors with the merge. |
Yes I have noticed it. It seems that I have messed something up. I just have no working station at the moment, I hope that I can fix it tomorrow. |
Good evening, This is a superset of @MaikKlein's #7969 commit, that I've fixed up to compile. I had a couple commits I wanted to do on top of @MaikKlein's work that I didn't want to bitrot.
Landed in #8069. |
fix typo just fixed typo changelog: none
I am doing some cleanups in std::result.