Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Jan 23, 2024
1 parent ff0ab93 commit 98277b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/zenoh-plugin-trait/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ impl<StartArgs: PluginStartArgs + 'static, Instance: PluginInstance + 'static>
&mut self,
) -> impl Iterator<Item = &mut dyn LoadedPlugin<StartArgs, Instance>> + '_ {
// self.plugins_mut().filter_map(|p| p.loaded_mut())
self.declared_plugins_iter_mut().filter_map(|p| p.loaded_mut())
self.declared_plugins_iter_mut()
.filter_map(|p| p.loaded_mut())
}

/// Lists the started plugins
Expand All @@ -218,7 +219,8 @@ impl<StartArgs: PluginStartArgs + 'static, Instance: PluginInstance + 'static>
pub fn started_plugins_iter_mut(
&mut self,
) -> impl Iterator<Item = &mut dyn StartedPlugin<StartArgs, Instance>> + '_ {
self.loaded_plugins_iter_mut().filter_map(|p| p.started_mut())
self.loaded_plugins_iter_mut()
.filter_map(|p| p.started_mut())
}

/// Returns single plugin record by name
Expand Down

0 comments on commit 98277b0

Please sign in to comment.