Skip to content

Commit

Permalink
Fix minor clippy warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Dec 16, 2022
1 parent e26f717 commit 0682fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ mod tests {
// a multiple of 8 coils.
let response_coils = [true, false, false, true, false, true, false, true].to_vec();
for num_coils in 1usize..8usize {
let mut client = Box::new(ClientMock::default());
let mut client = Box::<ClientMock>::default();
client.set_next_response(Ok(Response::ReadCoils(response_coils.clone())));
let mut context = Context { client };
context.set_slave(Slave(1));
Expand All @@ -371,7 +371,7 @@ mod tests {
// a multiple of 8 coils.
let response_inputs = [true, false, false, true, false, true, false, true].to_vec();
for num_inputs in 1usize..8usize {
let mut client = Box::new(ClientMock::default());
let mut client = Box::<ClientMock>::default();
client.set_next_response(Ok(Response::ReadDiscreteInputs(response_inputs.clone())));
let mut context = Context { client };
context.set_slave(Slave(1));
Expand Down

0 comments on commit 0682fdb

Please sign in to comment.