-
Notifications
You must be signed in to change notification settings - Fork 126
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
chore(transport): remove module_name_repetitions
#2284
Comments
I'll start working on this! Are there any places where we don't want to get rid of the module name repetitions? As far as I can see we allow them in a lot of modules, just going by this quick search. Maybe it makes sense to remove the crate-wide |
@mansf-osk I suggest starting with a single module, e.g. Small pull requests reduce the likelihood of merge conflicts and make reviewing easier.
Happy for the crate-wide |
Just so I understand, we would rename e.g. |
It would be defined as: // neqo-transport/src/ecn.rs
pub struct Info {
// ...
} and it would be used as: // Some other file.
use ecn;
fn my_func() {
let ecn_info = ecn::Info::new();
} Just like in the standard library where it is Does that make sense @larseggert? |
We allow the clippy lint
module_name_repetitions
:neqo/neqo-transport/src/lib.rs
Line 7 in a758177
We e.g. prefix various types in the
ecn
module withEcn
:neqo/neqo-transport/src/ecn.rs
Lines 18 to 30 in 3001a3a
As discussed in #2270 (comment), I suggest removing the allow and instead fix the module name repetition.
The text was updated successfully, but these errors were encountered: