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

Move use statements to beginning of widgets.rs #2631

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

randomPoison
Copy link
Collaborator

I think the convention is to put use statements (including pub use) towards the top of the file under the mod statements.

@michael-kerscher
Copy link
Collaborator

I usually put mod after use so I tried to find some official guidance here and found this in the rust style guide.
https://doc.rust-lang.org/style-guide/items.html#:~:text=Put%20imports%20before%20module%20declarations

Put imports before module declarations

@randomPoison
Copy link
Collaborator Author

Oh you're absolutely right. I spaced on that because they're pub use statements, but they also go at the top generally.

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