Skip to content

Commit ff02d8e

Browse files
authored
Bump Zenoh and adapt id config (#487)
1 parent 1a8dc66 commit ff02d8e

File tree

2 files changed

+34
-32
lines changed

2 files changed

+34
-32
lines changed

Cargo.lock

Lines changed: 30 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zenoh-bridge-ros2dds/src/zenoh_args.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ impl From<&CommonArgs> for Config {
7878
None => Config::default(),
7979
};
8080
if let Some(id) = &value.id {
81-
let _ = config.set_id(
82-
id.parse()
83-
.expect("Error with option --id (expecting a hexadecimal ZenohId)"),
84-
);
81+
let _ = config
82+
.set_id(Some(id.parse().expect(
83+
"Error with option --id (expecting a hexadecimal ZenohId)",
84+
)));
8585
}
8686
if value.mode.is_some() {
8787
// apply mode set via command line, overwritting mode set in config file

0 commit comments

Comments
 (0)