summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-07-06 11:30:36 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-07-06 11:54:10 +0200
commit509422fa54008007bf195bda1618767a16d679de (patch)
tree4e03ca078434611cc0f953203b4d631070605072
parent9b9af1a18bb3dc981fe2b96c92fcd0b51b8e1361 (diff)
Remove redunant clone
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--crates/core/tedge_core/src/communication.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/tedge_core/src/communication.rs b/crates/core/tedge_core/src/communication.rs
index 8fec5102..76c8939d 100644
--- a/crates/core/tedge_core/src/communication.rs
+++ b/crates/core/tedge_core/src/communication.rs
@@ -97,7 +97,7 @@ impl CorePluginDirectory {
/// plugin named `plugin_name`.
pub fn for_plugin_named(self: Arc<Self>, plugin_name: &str) -> PluginDirectory {
PluginDirectory {
- core: self.clone(),
+ core: self,
plugin_name: plugin_name.to_string(),
}
}