Skip to content

Commit 5b08bb5

Browse files
lint fixes
1 parent 4ca762f commit 5b08bb5

File tree

2 files changed

+2
-2
lines changed
  • plugins

2 files changed

+2
-2
lines changed

plugins/zenoh-plugin-example/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Plugin for ExamplePlugin {
8888

8989
// The first operation called by zenohd on the plugin
9090
fn start(name: &str, runtime: &Self::StartArgs) -> ZResult<Self::Instance> {
91-
let config_string = runtime.get_config().get(&format!("plugins/{}", name))?;
91+
let config_string = runtime.get_config().get(&format!("plugins/{name}"))?;
9292
let config: Value = serde_json::from_str(&config_string)?;
9393
let self_cfg = config.as_object().unwrap();
9494
// get the plugin's config details from self_cfg Map (here the "storage-selector" property)

plugins/zenoh-plugin-rest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ impl Plugin for RestPlugin {
284284

285285
let plugin_conf = runtime
286286
.get_config()
287-
.get(&format!("plugins/{}", name))
287+
.get(&format!("plugins/{name}"))
288288
.map_err(|_| zerror!("Plugin `{}`: missing config", name))?;
289289

290290
let conf = serde_json::from_str::<Config>(&plugin_conf)

0 commit comments

Comments
 (0)