File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ mod tests {
483
483
output. push ( rng. gen ( ) ) ;
484
484
}
485
485
486
- let orig_output_buf = output. to_vec ( ) ;
486
+ let orig_output_buf = output. clone ( ) ;
487
487
488
488
let bytes_written = engine. encode ( & input, & mut output) ;
489
489
@@ -522,7 +522,7 @@ mod tests {
522
522
output. push ( rng. gen ( ) ) ;
523
523
}
524
524
525
- let orig_output_buf = output. to_vec ( ) ;
525
+ let orig_output_buf = output. clone ( ) ;
526
526
527
527
encode_with_padding ( & input, & mut output[ 0 ..encoded_size] , & engine, encoded_size) ;
528
528
@@ -549,7 +549,7 @@ mod tests {
549
549
output. push ( rng. gen ( ) ) ;
550
550
}
551
551
552
- let orig_output_buf = output. to_vec ( ) ;
552
+ let orig_output_buf = output. clone ( ) ;
553
553
554
554
let bytes_written = add_padding ( input_len, & mut output) ;
555
555
You can’t perform that action at this time.
0 commit comments