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 @@ -417,7 +417,7 @@ impl<R: Read> Decoder<R> {
417
417
for ( i, plane) in data
418
418
. into_iter ( )
419
419
. enumerate ( )
420
- . filter ( |& ( _, ref plane) | !plane. is_empty ( ) )
420
+ . filter ( |( _, plane) | !plane. is_empty ( ) )
421
421
{
422
422
planes_u16[ i] = plane;
423
423
}
@@ -466,7 +466,7 @@ impl<R: Read> Decoder<R> {
466
466
for ( i, plane) in data
467
467
. into_iter ( )
468
468
. enumerate ( )
469
- . filter ( |& ( _, ref plane) | !plane. is_empty ( ) )
469
+ . filter ( |( _, plane) | !plane. is_empty ( ) )
470
470
{
471
471
if self . coefficients_finished [ i] == !0 {
472
472
planes[ i] = plane;
@@ -505,14 +505,14 @@ impl<R: Read> Decoder<R> {
505
505
let current_dc_tables = mem:: take ( & mut self . dc_huffman_tables ) ;
506
506
self . dc_huffman_tables = dc_tables
507
507
. into_iter ( )
508
- . zip ( current_dc_tables. into_iter ( ) )
508
+ . zip ( current_dc_tables)
509
509
. map ( |( a, b) | a. or ( b) )
510
510
. collect ( ) ;
511
511
512
512
let current_ac_tables = mem:: take ( & mut self . ac_huffman_tables ) ;
513
513
self . ac_huffman_tables = ac_tables
514
514
. into_iter ( )
515
- . zip ( current_ac_tables. into_iter ( ) )
515
+ . zip ( current_ac_tables)
516
516
. map ( |( a, b) | a. or ( b) )
517
517
. collect ( ) ;
518
518
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ impl ImmediateWorker {
95
95
dequantize_and_idct_block (
96
96
dct_scale,
97
97
coefficients,
98
- & * quantization_table,
98
+ & quantization_table,
99
99
8 ,
100
100
& mut output_buffer,
101
101
) ;
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