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

use method chaining for configuration #12

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

xoviat
Copy link
Contributor

@xoviat xoviat commented Jan 13, 2021

note: existing code still works with this implementation, so while it's technically a breaking change, it practically isn't.

.modify_filters()
.slave_filters()
.clear()
.enable_bank(1, Mask32::accept_all());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just look at the elegance of this!

Copy link
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

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

Thanks! This looks good, minus a few nits.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@jonas-schievink jonas-schievink merged commit 7d01e59 into stm32-rs:master Jan 22, 2021
@xoviat xoviat deleted the method-chaining branch January 22, 2021 21:28
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.

2 participants