Skip to content

Commit

Permalink
remove unecessary Unpin bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraef committed May 31, 2024
1 parent 3070385 commit df72777
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/proto/h1/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ where
/// This is useful for old-style HTTP upgrades, but ignores
/// newer-style upgrade API.
pub(crate) fn poll_without_shutdown(&mut self, cx: &mut Context<'_>) -> Poll<crate::Result<()>>
where
Self: Unpin,
{
Pin::new(self).poll_catch(cx, false).map_ok(|ds| {
if let Dispatched::Upgrade(pending) = ds {
Expand Down
5 changes: 0 additions & 5 deletions src/server/conn/http1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ where
where
S: Unpin,
S::Future: Unpin,
B: Unpin,
{
self.conn.poll_without_shutdown(cx)
}
Expand All @@ -178,10 +177,6 @@ where
///
/// This errors if the underlying connection protocol is not HTTP/1.
pub fn without_shutdown(self) -> impl Future<Output = crate::Result<Parts<I, S>>>
where
S: Unpin,
S::Future: Unpin,
B: Unpin,
{
let mut zelf = Some(self);
futures_util::future::poll_fn(move |cx| {
Expand Down

0 comments on commit df72777

Please sign in to comment.