diff --git a/bb8/src/api.rs b/bb8/src/api.rs index 1d0ad47..548fd04 100644 --- a/bb8/src/api.rs +++ b/bb8/src/api.rs @@ -165,10 +165,7 @@ impl Builder { /// /// Defaults to None. #[must_use] - pub fn min_idle(mut self, min_idle: U) -> Self - where - U: Into>, - { + pub fn min_idle(mut self, min_idle: impl Into>) -> Self { self.min_idle = min_idle.into(); self } @@ -197,10 +194,7 @@ impl Builder { /// /// Will panic if `max_lifetime` is 0. #[must_use] - pub fn max_lifetime(mut self, max_lifetime: D) -> Self - where - D: Into>, - { + pub fn max_lifetime(mut self, max_lifetime: impl Into>) -> Self { let max_lifetime = max_lifetime.into(); assert_ne!( max_lifetime, @@ -222,10 +216,7 @@ impl Builder { /// /// Will panic if `idle_timeout` is 0. #[must_use] - pub fn idle_timeout(mut self, idle_timeout: D) -> Self - where - D: Into>, - { + pub fn idle_timeout(mut self, idle_timeout: impl Into>) -> Self { let idle_timeout = idle_timeout.into(); assert_ne!( idle_timeout,