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 Clippy warnings #1696

Merged
merged 7 commits into from
Jul 26, 2023
Merged

Conversation

Thomasdezeeuw
Copy link
Collaborator

These changes are already in master/v0.8.

Matching what we use to test v0.8.
For various combination of the feature we can sometimes end up with
TcpKeepalive's fields not being used. Since we know that they are used
with other features the simplest solution is to just ignore the list for
now.
Never added it to the Makefile.
Some files are not picked up by running cargo fmt, but
find src tests examples -type f -iname "*.rs" | xargs rustfmt
does the trick.
@Thomasdezeeuw
Copy link
Collaborator Author

The Windows CI is failing due to MSxDOS/ntapi#19, but I don't if the upgrade to ntapi v0.4 is a breaking change, in v0.8 we don't depend on ntapi.

@Darksonn
Copy link
Contributor

Is any of its types in the public api of mio anywhere?

@Thomasdezeeuw
Copy link
Collaborator Author

Is any of its types in the public api of mio anywhere?

I don't think so, it's being pulled in via Miow, I don't think we use it directly anywhere.

But since v0.7 doesn't compile with rustc v1.67 (?) on Windows... I don't think a lot people are using v0.7 any more. I'm not sure if it's worth putting much more time into it.

@Darksonn
Copy link
Contributor

It sounds like its probably not a breaking change.

@Thomasdezeeuw
Copy link
Collaborator Author

It sounds like its probably not a breaking change.

I think we need to update to Miow v0.4/v0.5, both already use windows-sys. I personally don't have the time to do this, so I'm going to merge this as-is, since it doesn't further break the code, but now we at least have a working CI for v0.7 again.

@Thomasdezeeuw Thomasdezeeuw merged commit df992df into tokio-rs:v0.7.x Jul 26, 2023
@Thomasdezeeuw Thomasdezeeuw deleted the v0.7-clippy branch July 26, 2023 15:30
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