Skip to content

Commit

Permalink
Replace Vector with slice as method argument (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders authored Feb 27, 2024
1 parent 9a9aaa4 commit 24445f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsmr/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct DelegatingConsumer {
logger: LoggingConsumer,
}
impl DelegatingConsumer {
pub fn new(targets: &Vec<settings::Host>) -> Self {
pub fn new(targets: &[settings::Host]) -> Self {
let mut delegates: Vec<Box<dyn TelegramConsumer>> = Vec::with_capacity(targets.len() + 1);

let logger: LoggingConsumer = LoggingConsumer::new(targets.len() as u32);
Expand Down

0 comments on commit 24445f3

Please sign in to comment.