-
Notifications
You must be signed in to change notification settings - Fork 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
refactor(core)!: remove EitherOutput
#3341
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3a84c14
Use single quotes to avoid running commands
thomaseizinger 458aa53
Use intermediary variable
thomaseizinger 341d096
Merge branch 'master' into no-run-title-as-command
thomaseizinger aed5363
refactor(relay): introduce `Handler::new` functions (#3326)
thomaseizinger 5e97d0e
fix: revert "refactor(relay): introduce `Handler::new` functions" (#3…
thomaseizinger da97e8f
Replace `EitherError` with `Either`
thomaseizinger 2ce805d
Add changelog entry
thomaseizinger 0a2729d
Remove `EitherTransport` in favor of `Either`
thomaseizinger 3397266
Update core/CHANGELOG.md
thomaseizinger 5802177
Merge branch '2650-remove-either-error' into 2650-remove-either-trans…
thomaseizinger 7060f4b
Add changelog entry
thomaseizinger 82eb6c2
Merge branch 'no-run-title-as-command' into 2650-remove-either-error
thomaseizinger 955ff80
Merge branch 'master' into no-run-title-as-command
thomaseizinger bb84906
Merge branch 'no-run-title-as-command' into 2650-remove-either-error
thomaseizinger fdfaf72
Merge branch '2650-remove-either-error' into 2650-remove-either-trans…
thomaseizinger 59f6465
Update changelog entry
thomaseizinger 8872039
Remove `EitherUpgrade`
thomaseizinger d3e79cf
Update core/CHANGELOG.md
thomaseizinger 1526051
Remove `EitherFuture2`
thomaseizinger 1b25ec1
add changelog entry
thomaseizinger 4164aa8
Merge branch '2650-remove-either-upgrade' into 2650-remove-either-fut…
thomaseizinger 0c37e77
WIP: Remove `EitherOutput`
thomaseizinger 37215eb
Merge branch 'master' into 2650-remove-either-output
thomaseizinger 6301ff3
Make it compile
thomaseizinger 04e0682
Fix rustdoc link
thomaseizinger aa377be
Add changelog entry
thomaseizinger ff64c4d
Merge branch 'master' into 2650-remove-either-output
thomaseizinger 79b80dd
Merge branch 'master' into 2650-remove-either-output
mergify[bot] 7218b93
Merge branch 'master' into 2650-remove-either-output
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we ask for project to be public? As it seems the same purpose and would allow us to not have unsafe code here.
update:
sorry only now saw rayon-rs/either#76, can't we use
as_pin_mut
fromeither::Either
?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.
See rust-lang/futures-rs#2629 (comment) :)
This is the
future::Either
type, we can't useeither::Either
here because it doesn't implementAsyncRead
etcThere 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.
yeah I saw after, thanks Thomas :)
It it would be nice for
either::Either
to implement thefutures
traits as you asked on rayon-rs/either#79. But it seems you also submitted rust-lang/futures-rs#2691 which will allow us to remove theunsafe
code right? Ideally what would be really nice was for a singleEither
type 😀 which will be possible when rust-lang/futures-rs#2691 is merged right? Nonetheless thanks for your work simplifying this Thomas!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.
Correct!
Not quite unfortunately, we also use
Either
in places where it needs to implementstd::error::Error
for example andfutures::Either
doesn't AFAIK. I agree that it would be nice but at least after these patches, we don't have a problem with there being two differentEither
types.You are welcome☺️
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.
wdyt of then leaving a
TODO
on the unsafe code to be removed when afutures
gets released with rust-lang/futures-rs#2691 ?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.
Do you mean like line 93? 🙈
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.
ah! right LOL 😂