Skip to content

Commit

Permalink
Fix clippy warnings (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc authored Nov 30, 2023
1 parent 901534f commit 5c2b0f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/publication_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/querying_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 5c2b0f0

Please sign in to comment.