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

Migrate to Rust 2018 #511

Merged
merged 3 commits into from
May 23, 2020
Merged

Migrate to Rust 2018 #511

merged 3 commits into from
May 23, 2020

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented May 22, 2020

This migrates all crates to Rust 2018.

The first commit contains the minimal changes needed for the migration. This was mainly done by cargo fix --editon.
The second commit migrates the code to be the Rust 2018 idiomatic style. This mainly based on suggestions from rust_2018_idioms lint.

@taiki-e taiki-e requested review from jeehoonkang and a user May 22, 2020 16:11
Copy link
Contributor

@jeehoonkang jeehoonkang 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 happy with this change!

I left a question. After it's answered, I'll try to merge it.

crossbeam-channel/src/channel.rs Show resolved Hide resolved
@taiki-e taiki-e force-pushed the rust-2018 branch 2 times, most recently from fe15353 to 4ccc1bb Compare May 22, 2020 17:34
@taiki-e taiki-e force-pushed the rust-2018 branch 3 times, most recently from b8c375f to 6eb65a4 Compare May 22, 2020 18:58
Old cfg-if and memoffset don't support `use` imports.
@jeehoonkang
Copy link
Contributor

Thanks!

bors r+

@bors bors bot merged commit 33b9232 into crossbeam-rs:master May 23, 2020
@taiki-e taiki-e deleted the rust-2018 branch May 23, 2020 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants