refactor(lib): Use cfg(all(...)) instead of multiple cfg attributes
This commit is contained in:
committed by
Sean McArthur
parent
2c8121f173
commit
9dff00425d
@@ -51,8 +51,7 @@ use std::fmt;
|
||||
#[cfg(feature = "http2")]
|
||||
use std::marker::PhantomData;
|
||||
use std::sync::Arc;
|
||||
#[cfg(feature = "runtime")]
|
||||
#[cfg(feature = "http2")]
|
||||
#[cfg(all(feature = "runtime", feature = "http2"))]
|
||||
use std::time::Duration;
|
||||
|
||||
use bytes::Bytes;
|
||||
@@ -63,7 +62,10 @@ use tower_service::Service;
|
||||
|
||||
use super::dispatch;
|
||||
use crate::body::HttpBody;
|
||||
use crate::common::{task, exec::{BoxSendFuture, Exec}, Future, Pin, Poll};
|
||||
use crate::common::{
|
||||
exec::{BoxSendFuture, Exec},
|
||||
task, Future, Pin, Poll,
|
||||
};
|
||||
use crate::proto;
|
||||
use crate::rt::Executor;
|
||||
#[cfg(feature = "http1")]
|
||||
|
||||
Reference in New Issue
Block a user