diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs index 0518392..93ed62a 100644 --- a/src/client/legacy/client.rs +++ b/src/client/legacy/client.rs @@ -1458,11 +1458,12 @@ impl Builder { /// details. /// /// [`h2::client::Builder::timer`]: https://docs.rs/h2/client/struct.Builder.html#method.timer - pub fn timer(&mut self, timer: M) -> &mut Self + #[cfg(feature = "http2")] + #[cfg_attr(docsrs, doc(cfg(feature = "http2")))] + pub fn http2_timer(&mut self, timer: M) -> &mut Self where M: Timer + Send + Sync + 'static, { - #[cfg(feature = "http2")] self.h2_builder.timer(timer); self }