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

Fix warnings #76

Merged
merged 5 commits into from
Nov 29, 2023
Merged

Fix warnings #76

merged 5 commits into from
Nov 29, 2023

Conversation

usbalbin
Copy link
Contributor

@usbalbin usbalbin commented Jun 5, 2023

Fix clippy warnings

@usbalbin usbalbin marked this pull request as ready for review June 5, 2023 19:50
@no111u3
Copy link
Collaborator

no111u3 commented Nov 29, 2023

@usbalbin this review partially outdated, please update if you have some ability.

@usbalbin
Copy link
Contributor Author

warning: method `unlock_options` is never used
  --> src/flash.rs:62:8
   |
61 | impl<'a, const SECTOR_SZ_KB: u32> FlashWriter<'a, SECTOR_SZ_KB> {
   | --------------------------------------------------------------- method in this implementation
62 |     fn unlock_options(&mut self) -> Result<()> {
   |        ^^^^^^^^^^^^^^

@amcelroy , Is this function supposed to be public or is it just left as a "good to have" for features to be added later?

Copy link
Collaborator

@no111u3 no111u3 left a comment

Choose a reason for hiding this comment

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

@usbalbin please mark comments as resolved (button Resolve conversation) if you fix it, it make clear that exactly changed.

src/pwm.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
src/rcc/mod.rs Outdated Show resolved Hide resolved
@amcelroy
Copy link
Contributor

amcelroy commented Nov 29, 2023

warning: method `unlock_options` is never used
  --> src/flash.rs:62:8
   |
61 | impl<'a, const SECTOR_SZ_KB: u32> FlashWriter<'a, SECTOR_SZ_KB> {
   | --------------------------------------------------------------- method in this implementation
62 |     fn unlock_options(&mut self) -> Result<()> {
   |        ^^^^^^^^^^^^^^

@amcelroy , Is this function supposed to be public or is it just left as a "good to have" for features to be added later?

It is meant to be used if someone needs it, it just isn't used for now. I did use it to test changing the flash from single to dual block, but didn't end up needing to do that.


[[example]]
name = "flash_with_rtic"
required-features = ["stm32g474"]
Copy link
Contributor Author

@usbalbin usbalbin Nov 29, 2023

Choose a reason for hiding this comment

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

Not sure if this is how something like this is best done...

Edit: Clarification, example/flash_with_rtic is made just for stm32g474

@no111u3 no111u3 self-requested a review November 29, 2023 23:50
@no111u3 no111u3 merged commit d96a466 into stm32-rs:main Nov 29, 2023
9 checks passed
@no111u3 no111u3 mentioned this pull request Nov 30, 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