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

use self #827

Closed
wants to merge 7 commits into from
Closed

use self #827

wants to merge 7 commits into from

Conversation

adamnemecek
Copy link

No description provided.

@Philippe-Cholet
Copy link
Member

Philippe-Cholet commented Dec 20, 2023

We currently support a minimum version of Rust of 1.43.1 (see Cargo.toml) where Option::zip and let-else are not supported yet among other things, or I would use them myself.
Vec::new() vs vec![], I'm not sure it's worth your time. And what's the benefit? Shorter code.

The repo is formatted with rustfmt so I'm not sure what you are doing with your fmt commit.

About using Self I agree but I think there is a PR about clippy lints that surely address this, a PR that we should somehow merge, even if only partially (in it, it suggests the integratation of clippy to our CI which might be tricky).

@jswrenn
Copy link
Member

jswrenn commented Dec 24, 2023

I don't think we're likely to accept this. Large PRs are hard to review and need to have value proportionate to their review effort. The difference here is cosmetic. For this, I can imagine a maintainer denying clippy's use_self lint, then running cargo clippy --fix.

@jswrenn jswrenn closed this Dec 24, 2023
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.

3 participants