We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99409f5 commit 1fc0bc6Copy full SHA for 1fc0bc6
src/server/conn/auto.rs
@@ -179,9 +179,7 @@ pub struct Http1Builder<'a, E> {
179
impl<E> Http1Builder<'_, E> {
180
/// Http2 configuration.
181
pub fn http2(&mut self) -> Http2Builder<'_, E> {
182
- Http2Builder {
183
- inner: &mut self.inner,
184
- }
+ Http2Builder { inner: self.inner }
185
}
186
187
/// Set whether HTTP/1 connections should support half-closures.
@@ -314,9 +312,7 @@ pub struct Http2Builder<'a, E> {
314
312
impl<E> Http2Builder<'_, E> {
315
313
/// Http1 configuration.
316
pub fn http1(&mut self) -> Http1Builder<'_, E> {
317
- Http1Builder {
318
319
+ Http1Builder { inner: self.inner }
320
321
322
/// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2
0 commit comments