summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_api/examples/heartbeat.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-02-04 16:00:40 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-03-04 15:03:53 +0100
commiteb4d0bdff359ea53aed8ad03d2d3424958ba71ce (patch)
tree012c234b59a6a67ee4a812929eeed7b56da296f6 /crates/core/tedge_api/examples/heartbeat.rs
parent8bb2a0d919636a4f5d61af4c2feefc8535f17971 (diff)
Make PluginBuilder::verify_configuration() receive a &PluginConfiguration
The verification the `PluginBuilder` does not need to get the object, it is totally sufficient for the verification if it gets only a reference to it. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com> Signed-off-by: Marcel Müller <m.mueller@ifm.com> Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'crates/core/tedge_api/examples/heartbeat.rs')
-rw-r--r--crates/core/tedge_api/examples/heartbeat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/tedge_api/examples/heartbeat.rs b/crates/core/tedge_api/examples/heartbeat.rs
index 83c8a672..adef3fbc 100644
--- a/crates/core/tedge_api/examples/heartbeat.rs
+++ b/crates/core/tedge_api/examples/heartbeat.rs
@@ -15,7 +15,7 @@ impl PluginBuilder for HeartbeatServiceBuilder {
fn verify_configuration(
&self,
- _config: PluginConfiguration,
+ _config: &PluginConfiguration,
) -> Result<(), tedge_api::errors::PluginConfigurationError> {
Ok(())
}