Skip to content

Commit 752a46d

Browse files
author
daniel.eades
committed
use explicit clone instead of implicit clone
1 parent be2cd41 commit 752a46d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/encode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mod tests {
483483
output.push(rng.gen());
484484
}
485485

486-
let orig_output_buf = output.to_vec();
486+
let orig_output_buf = output.clone();
487487

488488
let bytes_written = engine.encode(&input, &mut output);
489489

@@ -522,7 +522,7 @@ mod tests {
522522
output.push(rng.gen());
523523
}
524524

525-
let orig_output_buf = output.to_vec();
525+
let orig_output_buf = output.clone();
526526

527527
encode_with_padding(&input, &mut output[0..encoded_size], &engine, encoded_size);
528528

@@ -549,7 +549,7 @@ mod tests {
549549
output.push(rng.gen());
550550
}
551551

552-
let orig_output_buf = output.to_vec();
552+
let orig_output_buf = output.clone();
553553

554554
let bytes_written = add_padding(input_len, &mut output);
555555

0 commit comments

Comments
 (0)