Skip to content

Commit

Permalink
fix: remove deprecated imports & lock file update (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara authored Sep 10, 2024
1 parent a8ad63b commit beb0ec8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 33 deletions.
52 changes: 26 additions & 26 deletions zenoh-jni/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zenoh-jni/src/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use jni::{
sys::jint,
JNIEnv,
};
use zenoh::{bytes::EncodingBuilderTrait, pubsub::Publisher, sample::SampleBuilderTrait, Wait};
use zenoh::{pubsub::Publisher, Wait};

use crate::{
errors::Result,
Expand Down
5 changes: 2 additions & 3 deletions zenoh-jni/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ use jni::{
use uhlc::ID;
use zenoh::{
key_expr::KeyExpr,
prelude::{EncodingBuilderTrait, Wait},
qos::{CongestionControl, Priority, QoSBuilderTrait},
prelude::Wait,
qos::{CongestionControl, Priority},
query::Query,
sample::{SampleBuilderTrait, TimestampBuilderTrait},
time::{Timestamp, NTP64},
};

Expand Down
5 changes: 2 additions & 3 deletions zenoh-jni/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ use std::sync::Arc;
use std::time::Duration;
use zenoh::config::{Config, ZenohId};
use zenoh::key_expr::KeyExpr;
use zenoh::prelude::{EncodingBuilderTrait, Wait};
use zenoh::prelude::Wait;
use zenoh::pubsub::{Publisher, Subscriber};
use zenoh::qos::QoSBuilderTrait;
use zenoh::query::{Query, Queryable, ReplyError, Selector};
use zenoh::sample::{Sample, SampleBuilderTrait};
use zenoh::sample::Sample;
use zenoh::session::{Session, SessionDeclarations};

/// Open a Zenoh session via JNI.
Expand Down

0 comments on commit beb0ec8

Please sign in to comment.