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

Replace all Into with From #4792

Merged
merged 3 commits into from
May 28, 2019
Merged

Replace all Into with From #4792

merged 3 commits into from
May 28, 2019

Conversation

iosmanthus
Copy link
Member

Signed-off-by: Iosmanthus Teng [email protected]

What have you changed? (mandatory)

Lots of code in TiKV implement Into<SomeType> for AnotherType but not From<AnotherType> for SomeType which will automatically implement Into<SomeType> and allow more explicitly construction.

What are the type of changes? (mandatory)

  • Improvement (a change which is an improvement to an existing feature)

Signed-off-by: Iosmanthus Teng <[email protected]>
@iosmanthus iosmanthus added the status/LGT1 Indicates that a PR has LGTM 1. label May 28, 2019
Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

I'm curious why impl From for these foreign types is now possible. @kennytm

@breezewish breezewish added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 28, 2019
@iosmanthus iosmanthus merged commit 3c65a6d into tikv:master May 28, 2019
@kennytm
Copy link
Contributor

kennytm commented May 28, 2019

@breeswish magic of rust-lang/rust#56145 maybe

breezewish pushed a commit to breezewish/tikv that referenced this pull request Jun 12, 2019
Signed-off-by: Iosmanthus Teng <[email protected]>
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
Signed-off-by: Iosmanthus Teng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants