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

chore(quinn): feature flag socket2 imports #1933

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Jul 23, 2024

The socket2 imports are only used by the feature flagged client function. Feature flag the imports as well.

Avoids the following warning:

  --> quinn/src/endpoint.rs:28:15
   |
28 | use socket2::{Domain, Protocol, Socket, Type};
   |               ^^^^^^  ^^^^^^^^  ^^^^^^  ^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

quinn/src/endpoint.rs Outdated Show resolved Hide resolved
@djc
Copy link
Member

djc commented Jul 23, 2024

CI failures are due to #1936.

The `socket2` imports are only used by the feature flagged `client` function.
Move the imports into the function to be feature flagged as well.

Avoids the following warning:

```
  --> quinn/src/endpoint.rs:28:15
   |
28 | use socket2::{Domain, Protocol, Socket, Type};
   |               ^^^^^^  ^^^^^^^^  ^^^^^^  ^^^^
   |
   = note: `#[warn(unused_imports)]` on by default
```
@djc
Copy link
Member

djc commented Jul 25, 2024

Thanks!

@Ralith Ralith added this pull request to the merge queue Jul 25, 2024
Merged via the queue into quinn-rs:main with commit 2de91cf Jul 25, 2024
8 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.

3 participants