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

Pass the right hand side to JoinTo #1022

Merged
merged 2 commits into from
Jul 14, 2017
Merged

Pass the right hand side to JoinTo #1022

merged 2 commits into from
Jul 14, 2017

Conversation

sgrif
Copy link
Member

@sgrif sgrif commented Jul 13, 2017

This is a refactoring in preparation for ad-hoc join clauses. I'm
imagining the API being roughly lhs.inner_join(rhs.on(on_clause)),
which will mean we will have a struct containing the rhs and the on
clause. The JoinTo impl for this struct will need to just destructure
it and return those pieces, so this sets up the trait changes for all
existing implementations.

I had to bump clippy as part of this change, as it hits a rustc bug that
was fixed on more recent nightlies. However, I couldn't bump to the
latest clippy, as recent nightlies are broken for us due to
rust-lang/rust#43153

This is a refactoring in preparation for ad-hoc join clauses. I'm
imagining the API being roughly `lhs.inner_join(rhs.on(on_clause))`,
which will mean we will have a struct containing the rhs and the on
clause. The `JoinTo` impl for this struct will need to just destructure
it and return those pieces, so this sets up the trait changes for all
existing implementations.

I had to bump clippy as part of this change, as it hits a rustc bug that
was fixed on more recent nightlies. However, I couldn't bump to the
*latest* clippy, as recent nightlies are broken for us due to
rust-lang/rust#43153
@sgrif sgrif requested review from killercup and Eijebong July 13, 2017 22:08
Copy link
Member

@Eijebong Eijebong left a comment

Choose a reason for hiding this comment

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

LGTM

@sgrif sgrif merged commit beec142 into master Jul 14, 2017
@sgrif sgrif deleted the sg-self-in-join-to branch July 14, 2017 15:19
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