-
Notifications
You must be signed in to change notification settings - Fork 12.5k
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
use self
instead of mod
in import statements
#19906
Comments
Note that |
|
Normally |
Just noting that this change would require an RFC. |
I've written a simple RFC for this issue: rust-lang/rfcs#532. |
closing in favor of RFC PR 532. thank you @lifthrasiir ! |
After enum variants was name-spaced,
use Option::{mod, Some, None};
looks weird, because Option is NOT a module.
change
mod
toself
would be more clear:use Option::{self, Some, None};
use std::option::{self, Option};
The text was updated successfully, but these errors were encountered: