summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-07-06 11:40:40 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-07-06 11:40:40 +0200
commitfdc34acf96eebdb5893544907f8c3ba210e9f49e (patch)
tree8da1498eb39b8828755fe68414336b8fb59259a7
parent9ccef6681387d9175f40dcecc33ec414e1627b8f (diff)
Allow to return borrowed box here
It is way more easy to allow to borrow a box here instead of returning a trait object and because this function is private, it is not considered problematic here. Allows lint: clippy::borrowed_box Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--crates/core/tedge_core/src/reactor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/core/tedge_core/src/reactor.rs b/crates/core/tedge_core/src/reactor.rs
index f3c8ea74..1824a216 100644
--- a/crates/core/tedge_core/src/reactor.rs
+++ b/crates/core/tedge_core/src/reactor.rs
@@ -296,6 +296,7 @@ impl Reactor {
.map(|cfg| cfg.configuration())
}
+ #[allow(clippy::borrowed_box)]
fn find_plugin_builder<'a>(
&'a self,
plugin_kind: &PluginKind,