Skip to content

CAN improvements #318

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

Merged
merged 3 commits into from
Oct 29, 2021
Merged

CAN improvements #318

merged 3 commits into from
Oct 29, 2021

Conversation

eldruin
Copy link
Member

@eldruin eldruin commented Oct 28, 2021

I added a few unit tests and then run clippy, which made me notice some small issues.
Most importantly, I changed the return type of the Frame::new() and Frame::new_remote() to be an Option since there is no error type defined for that.
This matches the interface of StandardId::new() / ExtendedId::new().

@timokroeger do you expect any other failure reasons in these methods or is having an Option fine here?

@eldruin eldruin requested a review from a team as a code owner October 28, 2021 06:44
@rust-highfive
Copy link

r? @ryankurte

(rust-highfive has picked a reviewer for you, use r? to override)

Copy link
Contributor

@ryankurte ryankurte left a comment

Choose a reason for hiding this comment

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

lgtm

@eldruin
Copy link
Member Author

eldruin commented Oct 29, 2021

Alright, let's get this merged then.

bors r=ryankurte

@bors bors bot merged commit 86adcd7 into rust-embedded:master Oct 29, 2021
@eldruin eldruin deleted the can-improvements branch October 29, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants