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 clippy lints #209

Merged
merged 1 commit into from
Apr 26, 2020
Merged

Fix clippy lints #209

merged 1 commit into from
Apr 26, 2020

Conversation

therealprof
Copy link
Member

Signed-off-by: Daniel Egger daniel@eggers-club.de

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
@TheZoq2
Copy link
Member

TheZoq2 commented Apr 26, 2020

LGTM

@TheZoq2 TheZoq2 merged commit ba6e6a0 into master Apr 26, 2020
@@ -180,7 +179,7 @@ impl Rtc {
```
*/
pub fn wait_alarm(&mut self) -> nb::Result<(), Infallible> {
if self.regs.crl.read().alrf().bit() == true {
Copy link
Member

Choose a reason for hiding this comment

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

It's better use bit_is_set/bit_is_clear() here`

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, didn't think of it; just wanted to do a quick cleanup to shut up clippy. 😅

@therealprof therealprof deleted the fix-clippy-lints branch April 26, 2020 16:15
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