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

Cleanup import statements #1746

Merged
merged 1 commit into from
Dec 31, 2023
Merged

Cleanup import statements #1746

merged 1 commit into from
Dec 31, 2023

Conversation

Thomasdezeeuw
Copy link
Collaborator

Mio once started with the order of std, external crates, than crate internal imports. At some points this order was not enforce properly and we ended up with a mix imports statements.

This commit orders everything following imports from std, external crates, then crate internal (the group_imports="StdExternalCrate" rustfmt option).

This has no functional change.

This has been annoying me for a while, so I decide to fix all of it in one fell swoop.

Depends on #1745

Mio once started with the order of std, external crates, than crate
internal imports. At some points this order was not enforce properly and
we ended up with a mix imports statements.

This commit orders everything following imports from std, external
crates, then crate internal (the `group_imports="StdExternalCrate"`
rustfmt option).

This has no functional change.
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

LGTM.

pub(crate) use self::epoll::{event, Event, Events, Selector};
pub(crate) use epoll::{event, Event, Events, Selector};
Copy link
Contributor

Choose a reason for hiding this comment

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

I would probably have kept the self:: markers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They're not needed any more since rust edition 2018/2021, so I the code I write now I never use it any more.

@Thomasdezeeuw Thomasdezeeuw merged commit ba9fa9f into thomas/1588 Dec 31, 2023
1 check passed
@Thomasdezeeuw Thomasdezeeuw deleted the thomas/order_imports branch December 31, 2023 13:00
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