Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jul 22, 2024

Pull Request Overview

Replace a blanket allow with the specific cases where it seems ok.

Testing Strategy

travis

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

I think where this was being violated is actually OK so I added an
in-code allow.
@bradjc bradjc marked this pull request as ready for review July 22, 2024 16:05
@github-actions github-actions bot added the chips/stm32 Change pertains to the stm32 family of MCUSs label Jul 22, 2024
lschuermann
lschuermann previously approved these changes Jul 22, 2024
@lschuermann lschuermann added P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. last-call Final review period for a pull request. needs-rebase labels Jul 22, 2024
alevy
alevy previously approved these changes Jul 23, 2024
Copy link
Member

@alevy alevy left a comment

Choose a reason for hiding this comment

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

I feel like we could just get rid of those cases all together, but meh. This is definitely better than having the blanket allow

@@ -29,6 +29,7 @@ impl<'a> Stm32f401ccDefaultPeripherals<'a> {
}
impl<'a> kernel::platform::chip::InterruptService for Stm32f401ccDefaultPeripherals<'a> {
unsafe fn service_interrupt(&self, interrupt: u32) -> bool {
#[allow(clippy::match_single_binding)]
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is OK because eventually someone might refine it more than just calling the other service_interrupt unconditionally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I didn't want to just remove the // put Stm32f401cc specific interrupts here comment which seemed helpful.

ppannuto
ppannuto previously approved these changes Jul 23, 2024
@alevy alevy dismissed stale reviews from ppannuto, lschuermann, and themself via 5aa78f2 July 23, 2024 22:29
@alevy alevy enabled auto-merge July 23, 2024 22:29
@alevy alevy added this pull request to the merge queue Jul 24, 2024
Merged via the queue into master with commit 925a233 Jul 24, 2024
@alevy alevy deleted the clippy-match-single-binding branch July 24, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chips/stm32 Change pertains to the stm32 family of MCUSs last-call Final review period for a pull request. needs-rebase P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants