Skip to content

Clippy fixes#49

Open
matthiasbeyer wants to merge 106 commits intozesterer:masterfrom
matthiasbeyer:clippy-fixes
Open

Clippy fixes#49
matthiasbeyer wants to merge 106 commits intozesterer:masterfrom
matthiasbeyer:clippy-fixes

Conversation

@matthiasbeyer
Copy link
Copy Markdown
Contributor

WIP!!!

This is a WIP effort to fix all clippy fixes in the project. It is based on #48, so that PR should clearly go in first, I will then rebase this one.

It is nowhere done, there's a lot reported by clippy. I am just opening this so that you can see what I am doing 😅

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 10, 2023

Deploy Preview for thriving-beignet-855860 ready!

Name Link
🔨 Latest commit 09daafb
🔍 Latest deploy log https://app.netlify.com/sites/thriving-beignet-855860/deploys/640b058083eb0400085a310c
😎 Deploy Preview https://deploy-preview-49--thriving-beignet-855860.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This variable is only used in the recursion. We cannot easily remove it,
because other trait implementations might need it (any this isnt
supposed to be a refactoring, but only a clippy cleanup).

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This variable is only used in the recursion. We cannot easily remove it,
because other trait implementations might need it (any this isnt
supposed to be a refactoring, but only a clippy cleanup).

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Allow this lint for now, so we can fix the simpler ones first and don't
have to scroll in the clippy output all the time.

This patch will be reverted as soon as possible.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Allow this lint for now, so we can fix the simpler ones first and don't
have to scroll in the clippy output all the time.

This patch will be reverted as soon as possible.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Not sure whether this is a bug, as all members of this type are unused.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This function name could be confused because it is named like
AsRef::as_ref().

Rename this function to Ident::as_string() because it actually does
this.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Allow this lint for now, so we can fix the simpler ones first and don't
have to scroll in the clippy output all the time.

This patch will be reverted as soon as possible.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This might be a bug, not sure what to do about it.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer matthiasbeyer marked this pull request as ready for review March 10, 2023 10:25
@matthiasbeyer
Copy link
Copy Markdown
Contributor Author

Cleaned up, rebased and "clippy-clean" IMO.

#48 should go in first still, though! 😆

@matthiasbeyer matthiasbeyer mentioned this pull request Mar 10, 2023
@zesterer
Copy link
Copy Markdown
Owner

This PR seems to remove several things that were unused, but with intent to use later. While I think clippy is usually a useful tool and very useful on projects in a more mature state, I don't think many of these changes do much to help this particular codebase, with some actually doing it some harm.

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