From 62dd8446eacf12a563800111811b82a9d1c5ea61 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Tue, 5 Dec 2023 15:55:05 +0000 Subject: [PATCH] import added --- zenoh-plugin-dds/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zenoh-plugin-dds/src/lib.rs b/zenoh-plugin-dds/src/lib.rs index 2275f365..b6ffb252 100644 --- a/zenoh-plugin-dds/src/lib.rs +++ b/zenoh-plugin-dds/src/lib.rs @@ -33,7 +33,7 @@ use std::sync::atomic::AtomicBool; use std::sync::Arc; use std::time::Duration; use zenoh::liveliness::LivelinessToken; -use zenoh::plugins::{RunningPluginTrait, ZenohPlugin}; +use zenoh::plugins::{RunningPluginTrait, ZenohPlugin, RunningPlugin}; use zenoh::prelude::r#async::AsyncResolve; use zenoh::prelude::r#sync::SyncResolve; use zenoh::prelude::*; @@ -126,12 +126,12 @@ impl PluginControl for DDSPlugin {} impl ZenohPlugin for DDSPlugin {} impl Plugin for DDSPlugin { type StartArgs = Runtime; - type Instance = zenoh::plugins::RunningPlugin; + type Instance = RunningPlugin; const DEFAULT_NAME: &'static str = "zenoh-plugin-dds"; const PLUGIN_VERSION: &'static str = env!("CARGO_PKG_VERSION"); - fn start(name: &str, runtime: &Self::StartArgs) -> ZResult { + fn start(name: &str, runtime: &Self::StartArgs) -> ZResult { // Try to initiate login. // Required in case of dynamic lib, otherwise no logs. // But cannot be done twice in case of static link.