File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl Plugin for ExamplePlugin {
88
88
89
89
// The first operation called by zenohd on the plugin
90
90
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}" ) ) ?;
92
92
let config: Value = serde_json:: from_str ( & config_string) ?;
93
93
let self_cfg = config. as_object ( ) . unwrap ( ) ;
94
94
// get the plugin's config details from self_cfg Map (here the "storage-selector" property)
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ impl Plugin for RestPlugin {
284
284
285
285
let plugin_conf = runtime
286
286
. get_config ( )
287
- . get ( & format ! ( "plugins/{}" , name ) )
287
+ . get ( & format ! ( "plugins/{name}" ) )
288
288
. map_err ( |_| zerror ! ( "Plugin `{}`: missing config" , name) ) ?;
289
289
290
290
let conf = serde_json:: from_str :: < Config > ( & plugin_conf)
You can’t perform that action at this time.
0 commit comments