diff --git a/src/server/conn/auto/mod.rs b/src/server/conn/auto/mod.rs index f278275..e1af0e3 100644 --- a/src/server/conn/auto/mod.rs +++ b/src/server/conn/auto/mod.rs @@ -855,7 +855,7 @@ impl Http2Builder<'_, E> { /// This is not advised, as it can potentially expose servers to DOS vulnerabilities. /// /// See for more information. - 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.inner.http2.max_local_error_reset_streams(max); self }