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 warnings from rustc and clippy #77

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

petrochenkov
Copy link
Contributor

No description provided.

@petrochenkov petrochenkov merged commit 43e36bb into rust-lang:main Apr 11, 2024
14 checks passed
@@ -291,7 +291,7 @@ impl Client {
{
let read = self.read().as_raw_fd();
loop {
match non_blocking_read(read, &mut buf) {
match non_blocking_read(read, &buf) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This was an error in programming: non_blocking_read definitely needs mutable reference to buffer.

cc @weihanglo Can you fix this in your PR (opening another PR would just create merge conflicts with yours)

Copy link
Member

Choose a reason for hiding this comment

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

Feel free to open a PR, since they fix different issues. Fine with resolving PR conflicts for that reason.

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.

None yet

3 participants