File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55- Fixed to include the LICENSE file in the Python package
66- Excluded the pycache directory from the copy_examples command
77- Updated the message image for the READMEs
8+ - Fixed clippy warnings
89
910## 2.2.8
1011
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl BlipBuf {
123123 let fixed = ( ( time * self . factor + self . offset ) >> PRE_SHIFT ) as u64 ;
124124 let out = & mut self . buf [ ( self . avail as usize + ( fixed >> FRAC_BITS ) as usize ) ..] ;
125125
126- let interp = ( fixed >> ( FRAC_BITS - DELTA_BITS ) & ( DELTA_UNIT - 1 ) as u64 ) as i32 ;
126+ let interp = ( ( fixed >> ( FRAC_BITS - DELTA_BITS ) ) & ( DELTA_UNIT - 1 ) as u64 ) as i32 ;
127127 let delta2 = delta * interp;
128128
129129 out[ 7 ] += delta * DELTA_UNIT - delta2;
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ impl Image {
6565 let mut closest_color: Color = 0 ;
6666 if include_colors {
6767 colors. push (
68- ( src_rgb. 0 as u32 ) << 16
69- | ( src_rgb. 1 as u32 ) << 8
68+ ( ( src_rgb. 0 as u32 ) << 16 )
69+ | ( ( src_rgb. 1 as u32 ) << 8 )
7070 | src_rgb. 2 as u32 ,
7171 ) ;
7272 closest_color = colors. len ( ) as Color - 1 ;
Original file line number Diff line number Diff line change 99 clippy:: redundant_closure_call,
1010 clippy:: too_many_arguments,
1111 clippy:: too_many_lines,
12+ clippy:: useless_conversion,
1213 clippy:: wrong_self_convention
1314) ]
1415
You can’t perform that action at this time.
0 commit comments