Skip to content

Commit 4256e85

Browse files
committed
refactor: put allow on server struct
1 parent e5ef5af commit 4256e85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/server.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pin_project! {
3434
/// handlers. It is built using the [`Builder`](Builder), and the future
3535
/// completes when the server has been shutdown. It should be run by an
3636
/// `Executor`.
37+
#[cfg_attr(feature = "deprecated", allow(deprecated))]
3738
pub struct Server<I, S, E = Exec> {
3839
#[pin]
3940
incoming: I,
@@ -189,6 +190,7 @@ where
189190
}
190191
}
191192

193+
#[cfg_attr(feature = "deprecated", allow(deprecated))]
192194
pub(super) fn poll_watch<W>(
193195
mut self: Pin<&mut Self>,
194196
cx: &mut task::Context<'_>,

0 commit comments

Comments
 (0)