File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ impl<R: Read> Decoder<R> {
418
418
for ( i, plane) in data
419
419
. into_iter ( )
420
420
. enumerate ( )
421
- . filter ( |& ( _, ref plane) | !plane. is_empty ( ) )
421
+ . filter ( |( _, plane) | !plane. is_empty ( ) )
422
422
{
423
423
planes_u16[ i] = plane;
424
424
}
@@ -467,7 +467,7 @@ impl<R: Read> Decoder<R> {
467
467
for ( i, plane) in data
468
468
. into_iter ( )
469
469
. enumerate ( )
470
- . filter ( |& ( _, ref plane) | !plane. is_empty ( ) )
470
+ . filter ( |( _, plane) | !plane. is_empty ( ) )
471
471
{
472
472
if self . coefficients_finished [ i] == !0 {
473
473
planes[ i] = plane;
@@ -506,14 +506,14 @@ impl<R: Read> Decoder<R> {
506
506
let current_dc_tables = mem:: take ( & mut self . dc_huffman_tables ) ;
507
507
self . dc_huffman_tables = dc_tables
508
508
. into_iter ( )
509
- . zip ( current_dc_tables. into_iter ( ) )
509
+ . zip ( current_dc_tables)
510
510
. map ( |( a, b) | a. or ( b) )
511
511
. collect ( ) ;
512
512
513
513
let current_ac_tables = mem:: take ( & mut self . ac_huffman_tables ) ;
514
514
self . ac_huffman_tables = ac_tables
515
515
. into_iter ( )
516
- . zip ( current_ac_tables. into_iter ( ) )
516
+ . zip ( current_ac_tables)
517
517
. map ( |( a, b) | a. or ( b) )
518
518
. collect ( ) ;
519
519
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl ImmediateWorker {
97
97
dequantize_and_idct_block (
98
98
dct_scale,
99
99
coefficients,
100
- & * quantization_table,
100
+ & quantization_table,
101
101
8 ,
102
102
& mut output_buffer,
103
103
) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ fn decoding_in_global_pool() {
13
13
14
14
let _: Vec < _ > = ( 0 ..1024 )
15
15
. map ( |_| {
16
- let path = path. clone ( ) ;
17
16
std:: thread:: spawn ( move || {
18
17
let mut decoder = Decoder :: new ( File :: open ( & path) . unwrap ( ) ) ;
19
18
let _ = decoder. decode ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments