Skip to content

Commit

Permalink
refactor(lib): remove redundant field name
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Nov 16, 2023
1 parent 33e1cbe commit 823d2cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/proto/h2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ where
};
// Clear send task
self.executor
.execute_h2_future(H2ClientFuture::Pipe { pipe: pipe });
.execute_h2_future(H2ClientFuture::Pipe { pipe });
}
}
}
Expand Down Expand Up @@ -559,7 +559,7 @@ where

let (pending, on_upgrade) = crate::upgrade::pending();
let io = H2Upgraded {
ping: ping,
ping,
send_stream: unsafe { UpgradedSendStream::new(send_stream) },
recv_stream,
buf: Bytes::new(),
Expand Down
2 changes: 1 addition & 1 deletion src/server/conn/http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl<E> Builder<E> {
/// [`Http2ServerConnExec`]: crate::rt::bounds::Http2ServerConnExec
pub fn new(exec: E) -> Self {
Self {
exec: exec,
exec,
timer: Time::Empty,
h2_builder: Default::default(),
}
Expand Down

0 comments on commit 823d2cb

Please sign in to comment.