From 24445f315a68e0a400553fa4cba1d641623089c6 Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Tue, 27 Feb 2024 10:27:16 +0100 Subject: [PATCH] Replace Vector with slice as method argument (#110) See https://rust-lang.github.io/rust-clippy/master/index.html#/ptr_arg --- src/dsmr/sender.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsmr/sender.rs b/src/dsmr/sender.rs index 2e2d2c2..79bc19a 100644 --- a/src/dsmr/sender.rs +++ b/src/dsmr/sender.rs @@ -50,7 +50,7 @@ pub struct DelegatingConsumer { logger: LoggingConsumer, } impl DelegatingConsumer { - pub fn new(targets: &Vec) -> Self { + pub fn new(targets: &[settings::Host]) -> Self { let mut delegates: Vec> = Vec::with_capacity(targets.len() + 1); let logger: LoggingConsumer = LoggingConsumer::new(targets.len() as u32);