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

Do use super::*; instead of use crate::common::*; #1239

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Conversation

casey
Copy link
Owner

@casey casey commented Jun 19, 2022

I've switched to preferring to put imports in the crate root, and then doing use super::* everywhere instead of use crate::common:*;

use super::* is shorter, and the strategy of always importing the super crate is compatible with nested modules.

@casey casey enabled auto-merge (squash) June 19, 2022 04:52
@casey casey disabled auto-merge June 19, 2022 04:52
@casey casey enabled auto-merge (squash) June 19, 2022 04:53
@casey casey merged commit 01fae9b into master Jun 19, 2022
@casey casey deleted the merge-imports branch June 19, 2022 04:56
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.

None yet

1 participant