Skip to content

Commit 78b3a98

Browse files
fix build warnings for zenoh-plugin-storage-manager (#1919)
1 parent 3fda646 commit 78b3a98

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

zenoh/src/net/runtime/adminspace.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ use tracing::{error, trace};
2222
use zenoh_buffers::buffer::SplitBuffer;
2323
use zenoh_config::{unwrap_or_default, wrappers::ZenohId, ConfigValidator, WhatAmI};
2424
use zenoh_core::Wait;
25+
#[cfg(all(feature = "plugins", feature = "runtime_plugins"))]
26+
use zenoh_plugin_trait::PluginDiff;
2527
#[cfg(feature = "plugins")]
26-
use zenoh_plugin_trait::{PluginControl, PluginDiff, PluginStatus};
28+
use zenoh_plugin_trait::{PluginControl, PluginStatus};
2729
#[cfg(feature = "plugins")]
2830
use zenoh_protocol::core::key_expr::keyexpr;
2931
use zenoh_protocol::{
@@ -39,7 +41,7 @@ use zenoh_result::ZResult;
3941
use zenoh_transport::unicast::TransportUnicast;
4042

4143
use super::{routing::dispatcher::face::Face, Runtime};
42-
#[cfg(feature = "plugins")]
44+
#[cfg(all(feature = "plugins", feature = "runtime_plugins"))]
4345
use crate::api::plugins::PluginsManager;
4446
use crate::{
4547
api::{
@@ -95,7 +97,7 @@ impl ConfigValidator for AdminSpace {
9597
}
9698

9799
impl AdminSpace {
98-
#[cfg(feature = "plugins")]
100+
#[cfg(all(feature = "plugins", feature = "runtime_plugins"))]
99101
fn start_plugin(
100102
plugin_mgr: &mut PluginsManager,
101103
config: &zenoh_config::PluginLoad,
@@ -220,7 +222,7 @@ impl AdminSpace {
220222
Arc::new(plugins_status),
221223
);
222224

223-
#[cfg(feature = "plugins")]
225+
#[cfg(all(feature = "plugins", feature = "runtime_plugins"))]
224226
let mut active_plugins = runtime
225227
.plugins_manager()
226228
.started_plugins_iter()

0 commit comments

Comments
 (0)