Skip to content

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
@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