Skip to content

Add clippy allow to smart battery macro and uprev bitfield-struct#40

Merged
tullom merged 2 commits intoOpenDevicePartnership:mainfrom
tullom:add-clippy-allow-and-uprev-bitfield-struct
Jan 21, 2026
Merged

Add clippy allow to smart battery macro and uprev bitfield-struct#40
tullom merged 2 commits intoOpenDevicePartnership:mainfrom
tullom:add-clippy-allow-and-uprev-bitfield-struct

Conversation

@tullom
Copy link
Contributor

@tullom tullom commented Jan 21, 2026

There exists an edge case where clippy will fail if the underlying driver's return error type Result<(), T> is the same as the associated Error type, meaning that the Ok(foo()?) pattern can be simplified to foo(). The question mark does a conversion for us if the return type of foo() is different from the associated type, and we want this functionality always. Therefore, we allow the clippy lint clippy::needless_question_mark

Uprev to v0.3.4

@tullom tullom self-assigned this Jan 21, 2026
@tullom tullom requested a review from a team as a code owner January 21, 2026 22:11
@tullom tullom added the bug Something isn't working label Jan 21, 2026
@tullom tullom requested a review from madeleyneVaca January 21, 2026 22:11
@tullom tullom moved this to In review in Embedded Controller Jan 21, 2026
Copy link
Contributor

@jerrysxie jerrysxie left a comment

Choose a reason for hiding this comment

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

@tullom We have been running into similar issues a few times already. Would it be possible to add something to the CI to ensure these issues are caught earlier in the future?

@tullom tullom merged commit 97c3b7a into OpenDevicePartnership:main Jan 21, 2026
35 of 42 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Embedded Controller Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Comments