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 some issues pointed out by Clippy in examples and tests #172

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

sirhcel
Copy link
Contributor

@sirhcel sirhcel commented Mar 28, 2024

They surfaced in the CI builds for #168 and look like new catches from the latest Clippy as it is already present in main (https://github.com/serialport/serialport-rs/actions/runs/8470256382). The intentions in the examples an the test code look clears up the ambiguous parts in the code.

In case of writing data, the code looks like it expects all data to be
written. And in case of reading data it expects some data to be read.
Let's make this explicit.
Copy link
Contributor

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Thank you!

@eldruin eldruin merged commit 361664b into serialport:main Mar 28, 2024
27 checks passed
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