Skip to content

Commit fd2abd5

Browse files
committed
Fix default-local option confusion
1 parent 4072771 commit fd2abd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

up-subscription-cli/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ impl std::error::Error for StartupError {}
6868
#[derive(clap::ValueEnum, Clone, Default, Debug)]
6969
enum Transport {
7070
#[default]
71+
None,
72+
#[cfg(feature = "local")]
7173
Local,
7274
// #[cfg(feature = "mqtt5")]
7375
// Mqtt5,
@@ -165,6 +167,7 @@ async fn main() {
165167
// .inspect_err(|e| panic!("Error setting up Zenoh transport: {}", e.get_message()))
166168
// .unwrap(),
167169
// ),
170+
Transport::None => None,
168171
};
169172

170173
if transport.is_none() {

0 commit comments

Comments
 (0)