Skip to content

Commit 1fc0bc6

Browse files
committed
refactor(client): remove reference to reference
1 parent 99409f5 commit 1fc0bc6

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
@@ -179,9 +179,7 @@ pub struct Http1Builder<'a, E> {
179179
impl<E> Http1Builder<'_, E> {
180180
/// Http2 configuration.
181181
pub fn http2(&mut self) -> Http2Builder<'_, E> {
182-
Http2Builder {
183-
inner: &mut self.inner,
184-
}
182+
Http2Builder { inner: self.inner }
185183
}
186184

187185
/// Set whether HTTP/1 connections should support half-closures.
@@ -314,9 +312,7 @@ pub struct Http2Builder<'a, E> {
314312
impl<E> Http2Builder<'_, E> {
315313
/// Http1 configuration.
316314
pub fn http1(&mut self) -> Http1Builder<'_, E> {
317-
Http1Builder {
318-
inner: &mut self.inner,
319-
}
315+
Http1Builder { inner: self.inner }
320316
}
321317

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

0 commit comments

Comments
 (0)