Skip to content

Commit b385f4f

Browse files
committed
refactor(client): remove reference to reference
1 parent 784109d commit b385f4f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/server/conn/auto.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,7 @@ pub struct Http1Builder<'a, E> {
411411
impl<E> Http1Builder<'_, E> {
412412
/// Http2 configuration.
413413
pub fn http2(&mut self) -> Http2Builder<'_, E> {
414-
Http2Builder {
415-
inner: &mut self.inner,
416-
}
414+
Http2Builder { inner: self.inner }
417415
}
418416

419417
/// Set whether HTTP/1 connections should support half-closures.
@@ -546,9 +544,7 @@ pub struct Http2Builder<'a, E> {
546544
impl<E> Http2Builder<'_, E> {
547545
/// Http1 configuration.
548546
pub fn http1(&mut self) -> Http1Builder<'_, E> {
549-
Http1Builder {
550-
inner: &mut self.inner,
551-
}
547+
Http1Builder { inner: self.inner }
552548
}
553549

554550
/// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2

0 commit comments

Comments
 (0)