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

internal: Work through temporarily allowed clippy lints, part 1 #16404

Merged
merged 39 commits into from
Jan 19, 2024

Conversation

Urhengulas
Copy link
Contributor

@Urhengulas Urhengulas commented Jan 19, 2024

This is the first batch of not allowing but actually fixing the clippy lints. Each commit removes one lint from the lint table and then fixes the resulting warnings.

Follow-up to #16401

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 19, 2024
Comment on lines +275 to 278
#[allow(clippy::double_parens)]
fn from_bytes(it: &[u8]) -> Result<Self> {
Ok(Address::from_usize(from_bytes!(usize, it)))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like this lint should not trigger on macro expansions 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I will report it and the other bug as well

@Veykril
Copy link
Member

Veykril commented Jan 19, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jan 19, 2024

📌 Commit 9e83779 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 19, 2024

⌛ Testing commit 9e83779 with merge 67cfbf2...

@bors
Copy link
Contributor

bors commented Jan 19, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 67cfbf2 to master...

@bors bors merged commit 67cfbf2 into rust-lang:master Jan 19, 2024
10 checks passed
@lnicola lnicola changed the title Work through temporarily allowed clippy lints, part 1 internal: Work through temporarily allowed clippy lints, part 1 Jan 20, 2024
@Urhengulas Urhengulas deleted the satisfy-clippy branch January 21, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants