File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ impl DmaChannel {
586
586
TransferAttributes :: SSIZE . val ( T :: DATA_TRANSFER_ID ) + TransferAttributes :: SMOD . val ( 0 ) ,
587
587
) ;
588
588
tcd. nbytes . set ( mem:: size_of :: < T > ( ) as u32 ) ;
589
- tcd. slast . set ( ( -1 * ( buffer. len ( ) as i32 ) ) as u32 ) ;
589
+ tcd. slast . set ( ( -( buffer. len ( ) as i32 ) ) as u32 ) ;
590
590
let iterations: u16 = buffer. len ( ) as u16 ;
591
591
tcd. biter . set ( iterations) ;
592
592
tcd. citer . set ( iterations) ;
@@ -604,7 +604,7 @@ impl DmaChannel {
604
604
TransferAttributes :: DSIZE . val ( T :: DATA_TRANSFER_ID ) + TransferAttributes :: DMOD . val ( 0 ) ,
605
605
) ;
606
606
tcd. nbytes . set ( mem:: size_of :: < T > ( ) as u32 ) ;
607
- tcd. dlast_sga . set ( ( -1 * ( buffer. len ( ) as i32 ) ) as u32 ) ;
607
+ tcd. dlast_sga . set ( ( -( buffer. len ( ) as i32 ) ) as u32 ) ;
608
608
let iterations: u16 = buffer. len ( ) as u16 ;
609
609
tcd. biter . set ( iterations) ;
610
610
tcd. citer . set ( iterations) ;
Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ CLIPPY_ARGS_STYLE="
106
106
-A clippy::manual_range_contains
107
107
-A clippy::match_like_matches_macro
108
108
-A clippy::module_inception
109
- -A clippy::neg-multiply
110
109
-A clippy::new-ret-no-self
111
110
-A clippy::new_without_default
112
111
-A clippy::redundant_closure
You can’t perform that action at this time.
0 commit comments