@@ -20,7 +20,6 @@ use crate::common::exec::{ConnStreamExec, NewSvcExec};
20
20
use crate :: common:: { task, Future , Pin , Poll , Unpin } ;
21
21
// Renamed `Http` as `Http_` for now so that people upgrading don't see an
22
22
// error that `hyper::server::Http` is private...
23
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
24
23
use super :: conn:: { Connection , Http as Http_ , UpgradeableConnection } ;
25
24
use super :: shutdown:: { Graceful , GracefulWatcher } ;
26
25
use crate :: service:: { HttpService , MakeServiceRef } ;
@@ -34,7 +33,6 @@ pin_project! {
34
33
/// handlers. It is built using the [`Builder`](Builder), and the future
35
34
/// completes when the server has been shutdown. It should be run by an
36
35
/// `Executor`.
37
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
38
36
pub struct Server <I , S , E = Exec > {
39
37
#[ pin]
40
38
incoming: I ,
@@ -46,7 +44,6 @@ pin_project! {
46
44
/// A builder for a [`Server`](Server).
47
45
#[ derive( Debug ) ]
48
46
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
49
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
50
47
pub struct Builder < I , E = Exec > {
51
48
incoming : I ,
52
49
protocol : Http_ < E > ,
@@ -55,7 +52,6 @@ pub struct Builder<I, E = Exec> {
55
52
// ===== impl Server =====
56
53
57
54
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
58
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
59
55
impl < I > Server < I , ( ) > {
60
56
/// Starts a [`Builder`](Builder) with the provided incoming stream.
61
57
pub fn builder ( incoming : I ) -> Builder < I > {
@@ -109,7 +105,6 @@ impl<S, E> Server<AddrIncoming, S, E> {
109
105
}
110
106
111
107
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
112
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
113
108
impl < I , IO , IE , S , E , B > Server < I , S , E >
114
109
where
115
110
I : Accept < Conn = IO , Error = IE > ,
@@ -212,7 +207,6 @@ where
212
207
}
213
208
214
209
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
215
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
216
210
impl < I , IO , IE , S , B , E > Future for Server < I , S , E >
217
211
where
218
212
I : Accept < Conn = IO , Error = IE > ,
@@ -243,7 +237,6 @@ impl<I: fmt::Debug, S: fmt::Debug> fmt::Debug for Server<I, S> {
243
237
// ===== impl Builder =====
244
238
245
239
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
246
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
247
240
impl < I , E > Builder < I , E > {
248
241
/// Start a new builder, wrapping an incoming stream and low-level options.
249
242
///
@@ -778,7 +771,6 @@ pin_project! {
778
771
#[ must_use = "futures do nothing unless polled" ]
779
772
#[ derive( Debug ) ]
780
773
#[ cfg_attr( docsrs, doc( cfg( any( feature = "http1" , feature = "http2" ) ) ) ) ]
781
- #[ cfg_attr( feature = "deprecated" , allow( deprecated) ) ]
782
774
pub struct Connecting <I , F , E = Exec > {
783
775
#[ pin]
784
776
future: F ,
0 commit comments