mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-19 01:36:08 +00:00
chore(quinn): feature flag socket2 imports
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
```
This commit is contained in:
committed by
Benjamin Saunders
parent
78fbceecf9
commit
2de91cfd7f
@@ -25,6 +25,7 @@ use proto::{
|
||||
EndpointEvent, ServerConfig,
|
||||
};
|
||||
use rustc_hash::FxHashMap;
|
||||
#[cfg(feature = "ring")]
|
||||
use socket2::{Domain, Protocol, Socket, Type};
|
||||
use tokio::sync::{futures::Notified, mpsc, Notify};
|
||||
use tracing::{Instrument, Span};
|
||||
|
||||
Reference in New Issue
Block a user