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

resolve all warnings and clippy lints #298

Closed
wants to merge 1 commit into from

Conversation

Crzyrndm
Copy link
Contributor

@Crzyrndm Crzyrndm commented Mar 6, 2022

Any remaining warnings lints should be in examples/ and resolved by #297

@@ -9,6 +9,7 @@
//! the STM32L432KC microcontroller. Participation is of course very welcome!

#![no_std]
#![allow(clippy::upper_case_acronyms)]
Copy link
Contributor Author

@Crzyrndm Crzyrndm Mar 6, 2022

Choose a reason for hiding this comment

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

This was causing peripheral / register defines to raise clippy warnings. It was only in a single module IIRC, so could move this to only the scope of that module potentially?

@@ -158,12 +158,24 @@ impl RtcConfig {
}

impl Rtc {
#[allow(clippy::self_named_constructors)]
#[deprecated = "use `new()` instead"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is potentially controversial. Opinions?
Also has conflicts with #297 (whichever is merged last will need modifications to suppress the deprecation warnings assuming this remains)

@Crzyrndm Crzyrndm closed this Sep 25, 2022
@Crzyrndm Crzyrndm deleted the lints-and-warnings branch September 25, 2022 00:35
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.

1 participant