diff --git a/src/server/conn/http2.rs b/src/server/conn/http2.rs index 43e435bfd9..e0d61c13a6 100644 --- a/src/server/conn/http2.rs +++ b/src/server/conn/http2.rs @@ -141,7 +141,7 @@ impl Builder { /// See for more information. #[cfg(feature = "http2")] #[cfg_attr(docsrs, doc(cfg(feature = "http2")))] - pub fn max_local_error_reset_streams(mut self, max: impl Into>) -> Self { + pub fn max_local_error_reset_streams(&mut self, max: impl Into>) -> &mut Self { self.h2_builder.max_local_error_reset_streams = max.into(); self }