From 5c2b0f0f4362fdb131c01dcb6e8c7f22f3adf3d0 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 30 Nov 2023 17:01:08 +0100 Subject: [PATCH] Fix clippy warnings (#209) --- src/publication_cache.rs | 2 +- src/querying_subscriber.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/publication_cache.rs b/src/publication_cache.rs index d7fbf347c..701dff31a 100644 --- a/src/publication_cache.rs +++ b/src/publication_cache.rs @@ -131,7 +131,7 @@ pub extern "C" fn ze_declare_publication_cache( if let Some(key_expr) = keyexpr { let mut p = s.declare_publication_cache(key_expr); if let Some(options) = options { - p = p.history(options.history.into()); + p = p.history(options.history); p = p.queryable_allowed_origin(options.queryable_origin.into()); if options.resources_limit != 0 { p = p.resources_limit(options.resources_limit) diff --git a/src/querying_subscriber.rs b/src/querying_subscriber.rs index 51136173d..d407f9646 100644 --- a/src/querying_subscriber.rs +++ b/src/querying_subscriber.rs @@ -82,7 +82,7 @@ impl ze_owned_querying_subscriber_t { pub fn new(sub: zenoh_ext::FetchingSubscriber<'static, ()>, session: z_session_t) -> Self { Some(Box::new(FetchingSubscriberWrapper { fetching_subscriber: sub, - session: session, + session, })) .into() }