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 the main crate to the 2018 edition. #2247

Merged
merged 3 commits into from
Dec 18, 2019
Merged

Conversation

sgrif
Copy link
Member

@sgrif sgrif commented Dec 17, 2019

Note that this does not make any idiom adjustments, nor does it make the
crate usable without #[macro_use] extern crate diesel;. This is the
result of running cargo fix --edition, fixing the broken code it
generated, and then manually fixing the doctests.

As part of this I noticed a few doctests that expected the extras
feature to be able to run. I fixed those, and also realized that the
Macaddr type's impls are hidden behind the network-address feature
for no real reason.

Note that this does not make any idiom adjustments, nor does it make the
crate usable without `#[macro_use] extern crate diesel;`. This is the
result of running `cargo fix --edition`, fixing the broken code it
generated, and then manually fixing the doctests.

As part of this I noticed a few doctests that expected the `extras`
feature to be able to run. I fixed those, and also realized that the
`Macaddr` type's impls are hidden behind the `network-address` feature
for no real reason.
@sgrif sgrif requested a review from a team December 17, 2019 18:54
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

doctests are looks good to me. Hoping cargo fix is doing a good work!

@sgrif sgrif merged commit c106100 into master Dec 18, 2019
@sgrif sgrif deleted the sg-main-crate-2018 branch December 20, 2019 18:25
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