diff --git a/zenoh-ext/src/querying_subscriber.rs b/zenoh-ext/src/querying_subscriber.rs index 31b058d8c2..9796109510 100644 --- a/zenoh-ext/src/querying_subscriber.rs +++ b/zenoh-ext/src/querying_subscriber.rs @@ -128,7 +128,7 @@ impl<'a, 'b, KeySpace> QueryingSubscriberBuilder<'a, 'b, KeySpace, DefaultHandle } } -impl<'a, 'b, Handler> QueryingSubscriberBuilder<'a, 'b, crate::UserSpace, Handler> { +impl<'b, Handler> QueryingSubscriberBuilder<'_, 'b, crate::UserSpace, Handler> { /// Change the subscription reliability. #[cfg(feature = "unstable")] #[deprecated( @@ -207,7 +207,7 @@ impl<'a, 'b, Handler> QueryingSubscriberBuilder<'a, 'b, crate::UserSpace, Handle } } -impl<'a, 'b, KeySpace, Handler> QueryingSubscriberBuilder<'a, 'b, KeySpace, Handler> { +impl QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> { /// Change the timeout to be used for queries. #[inline] pub fn query_timeout(mut self, query_timeout: Duration) -> Self { @@ -228,7 +228,7 @@ impl<'a, 'b, KeySpace, Handler> QueryingSubscriberBuilder<'a, 'b, KeySpace, Hand } } -impl<'a, KeySpace, Handler> Resolvable for QueryingSubscriberBuilder<'a, '_, KeySpace, Handler> +impl Resolvable for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> where Handler: IntoHandler<'static, Sample>, Handler::Handler: Send, @@ -285,7 +285,7 @@ where } } -impl<'a, KeySpace, Handler> IntoFuture for QueryingSubscriberBuilder<'a, '_, KeySpace, Handler> +impl IntoFuture for QueryingSubscriberBuilder<'_, '_, KeySpace, Handler> where KeySpace: Into + Clone, Handler: IntoHandler<'static, Sample> + Send, @@ -495,12 +495,10 @@ where } impl< - 'a, - 'b, Handler, Fetch: FnOnce(Box) -> ZResult<()>, TryIntoSample, - > FetchingSubscriberBuilder<'a, 'b, crate::UserSpace, Handler, Fetch, TryIntoSample> + > FetchingSubscriberBuilder<'_, '_, crate::UserSpace, Handler, Fetch, TryIntoSample> where TryIntoSample: ExtractSample, { @@ -548,13 +546,11 @@ where } impl< - 'a, - 'b, KeySpace, Handler, Fetch: FnOnce(Box) -> ZResult<()>, TryIntoSample, - > FetchingSubscriberBuilder<'a, 'b, KeySpace, Handler, Fetch, TryIntoSample> + > FetchingSubscriberBuilder<'_, '_, KeySpace, Handler, Fetch, TryIntoSample> where TryIntoSample: ExtractSample, { @@ -572,12 +568,11 @@ where } impl< - 'a, KeySpace, Handler, Fetch: FnOnce(Box) -> ZResult<()>, TryIntoSample, - > Resolvable for FetchingSubscriberBuilder<'a, '_, KeySpace, Handler, Fetch, TryIntoSample> + > Resolvable for FetchingSubscriberBuilder<'_, '_, KeySpace, Handler, Fetch, TryIntoSample> where Handler: IntoHandler<'static, Sample>, Handler::Handler: Send, @@ -604,12 +599,11 @@ where } impl< - 'a, KeySpace, Handler, Fetch: FnOnce(Box) -> ZResult<()> + Send + Sync, TryIntoSample, - > IntoFuture for FetchingSubscriberBuilder<'a, '_, KeySpace, Handler, Fetch, TryIntoSample> + > IntoFuture for FetchingSubscriberBuilder<'_, '_, KeySpace, Handler, Fetch, TryIntoSample> where KeySpace: Into, Handler: IntoHandler<'static, Sample> + Send, diff --git a/zenoh/src/api/liveliness.rs b/zenoh/src/api/liveliness.rs index 0d9a359e75..58d6ea7a71 100644 --- a/zenoh/src/api/liveliness.rs +++ b/zenoh/src/api/liveliness.rs @@ -575,7 +575,7 @@ where } #[zenoh_macros::unstable] -impl<'a, Handler> Wait for LivelinessSubscriberBuilder<'a, '_, Handler> +impl Wait for LivelinessSubscriberBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, Sample> + Send, Handler::Handler: Send, @@ -610,7 +610,7 @@ where } #[zenoh_macros::unstable] -impl<'a, Handler> IntoFuture for LivelinessSubscriberBuilder<'a, '_, Handler> +impl IntoFuture for LivelinessSubscriberBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, Sample> + Send, Handler::Handler: Send, @@ -750,7 +750,7 @@ impl<'a, 'b> LivelinessGetBuilder<'a, 'b, DefaultHandler> { } } -impl<'a, 'b, Handler> LivelinessGetBuilder<'a, 'b, Handler> { +impl LivelinessGetBuilder<'_, '_, Handler> { /// Set query timeout. #[inline] pub fn timeout(mut self, timeout: Duration) -> Self { diff --git a/zenoh/src/api/publisher.rs b/zenoh/src/api/publisher.rs index 2a28ddf47a..1f3ac479f1 100644 --- a/zenoh/src/api/publisher.rs +++ b/zenoh/src/api/publisher.rs @@ -756,7 +756,7 @@ impl MatchingListenerBuilder<'_, '_, Handler> { } #[zenoh_macros::unstable] -impl<'a, 'b, Handler> Resolvable for MatchingListenerBuilder<'a, 'b, Handler> +impl Resolvable for MatchingListenerBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, MatchingStatus> + Send, Handler::Handler: Send, @@ -765,7 +765,7 @@ where } #[zenoh_macros::unstable] -impl<'a, 'b, Handler> Wait for MatchingListenerBuilder<'a, 'b, Handler> +impl Wait for MatchingListenerBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, MatchingStatus> + Send, Handler::Handler: Send, @@ -791,7 +791,7 @@ where } #[zenoh_macros::unstable] -impl<'a, 'b, Handler> IntoFuture for MatchingListenerBuilder<'a, 'b, Handler> +impl IntoFuture for MatchingListenerBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, MatchingStatus> + Send, Handler::Handler: Send, diff --git a/zenoh/src/api/queryable.rs b/zenoh/src/api/queryable.rs index cd4bf9e04a..951600d1e6 100644 --- a/zenoh/src/api/queryable.rs +++ b/zenoh/src/api/queryable.rs @@ -714,7 +714,7 @@ impl<'a, 'b> QueryableBuilder<'a, 'b, DefaultHandler> { } } -impl<'a, 'b, Handler> QueryableBuilder<'a, 'b, Handler> { +impl QueryableBuilder<'_, '_, Handler> { /// Change queryable completeness. #[inline] pub fn complete(mut self, complete: bool) -> Self { diff --git a/zenoh/src/api/subscriber.rs b/zenoh/src/api/subscriber.rs index d2ce301333..ac5202ed85 100644 --- a/zenoh/src/api/subscriber.rs +++ b/zenoh/src/api/subscriber.rs @@ -252,7 +252,7 @@ impl<'a, 'b> SubscriberBuilder<'a, 'b, DefaultHandler> { } } -impl<'a, 'b, Handler> SubscriberBuilder<'a, 'b, Handler> { +impl SubscriberBuilder<'_, '_, Handler> { /// Change the subscription reliability. #[cfg(feature = "unstable")] #[deprecated( @@ -309,7 +309,7 @@ impl<'a, 'b, Handler> SubscriberBuilder<'a, 'b, Handler> { } // Push mode -impl<'a, Handler> Resolvable for SubscriberBuilder<'a, '_, Handler> +impl Resolvable for SubscriberBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, Sample> + Send, Handler::Handler: Send, @@ -317,7 +317,7 @@ where type To = ZResult>; } -impl<'a, Handler> Wait for SubscriberBuilder<'a, '_, Handler> +impl Wait for SubscriberBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, Sample> + Send, Handler::Handler: Send, @@ -343,7 +343,7 @@ where } } -impl<'a, Handler> IntoFuture for SubscriberBuilder<'a, '_, Handler> +impl IntoFuture for SubscriberBuilder<'_, '_, Handler> where Handler: IntoHandler<'static, Sample> + Send, Handler::Handler: Send,