File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ impl AmlValue {
494
494
*/
495
495
let bits_to_copy = cmp:: min ( length, 64 ) ;
496
496
bitslice[ offset..( offset + bits_to_copy) ]
497
- . copy_from_bitslice ( & value. to_le_bytes ( ) . view_bits ( ) [ ..( bits_to_copy as usize ) ] ) ;
497
+ . copy_from_bitslice ( & value. to_le_bytes ( ) . view_bits ( ) [ ..( bits_to_copy) ] ) ;
498
498
// Zero extend to the end of the buffer field
499
499
bitslice[ ( offset + bits_to_copy) ..( offset + length) ] . fill ( false ) ;
500
500
Ok ( ( ) )
@@ -514,7 +514,7 @@ impl AmlValue {
514
514
let value_data = value. lock ( ) ;
515
515
let bits_to_copy = cmp:: min ( length, value_data. len ( ) * 8 ) ;
516
516
bitslice[ offset..( offset + bits_to_copy) ]
517
- . copy_from_bitslice ( & value_data. view_bits ( ) [ ..( bits_to_copy as usize ) ] ) ;
517
+ . copy_from_bitslice ( & value_data. view_bits ( ) [ ..( bits_to_copy) ] ) ;
518
518
// Zero extend to the end of the buffer field
519
519
bitslice[ ( offset + bits_to_copy) ..( offset + length) ] . fill ( false ) ;
520
520
Ok ( ( ) )
@@ -560,7 +560,7 @@ impl Args {
560
560
}
561
561
562
562
let mut args: Vec < Option < AmlValue > > = list. into_iter ( ) . map ( Option :: Some ) . collect ( ) ;
563
- args. extend ( core:: iter:: repeat ( None ) . take ( 7 - args. len ( ) ) ) ;
563
+ args. extend ( core:: iter:: repeat_n ( None , 7 - args. len ( ) ) ) ;
564
564
Ok ( Args ( args. try_into ( ) . unwrap ( ) ) )
565
565
}
566
566
You can’t perform that action at this time.
0 commit comments