We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784109d commit b385f4fCopy full SHA for b385f4f
src/server/conn/auto.rs
@@ -411,9 +411,7 @@ pub struct Http1Builder<'a, E> {
411
impl<E> Http1Builder<'_, E> {
412
/// Http2 configuration.
413
pub fn http2(&mut self) -> Http2Builder<'_, E> {
414
- Http2Builder {
415
- inner: &mut self.inner,
416
- }
+ Http2Builder { inner: self.inner }
417
}
418
419
/// Set whether HTTP/1 connections should support half-closures.
@@ -546,9 +544,7 @@ pub struct Http2Builder<'a, E> {
546
544
impl<E> Http2Builder<'_, E> {
547
545
/// Http1 configuration.
548
pub fn http1(&mut self) -> Http1Builder<'_, E> {
549
- Http1Builder {
550
551
+ Http1Builder { inner: self.inner }
552
553
554
/// Sets the [`SETTINGS_INITIAL_WINDOW_SIZE`][spec] option for HTTP2
0 commit comments