File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 48
48
49
49
#![ deny( missing_docs) ]
50
50
#![ deny( warnings) ]
51
- #![ warn( clippy:: use_self, clippy:: doc_markdown, clippy:: ptr_as_ptr) ]
51
+ #![ warn(
52
+ clippy:: use_self,
53
+ clippy:: doc_markdown,
54
+ clippy:: ptr_as_ptr,
55
+ clippy:: trivially_copy_pass_by_ref
56
+ ) ]
52
57
#![ no_std]
53
58
54
59
use core:: fmt;
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ enum Index {
28
28
}
29
29
30
30
impl Index {
31
- fn usize ( & self ) -> usize {
32
- match * self {
31
+ fn usize ( self ) -> usize {
32
+ match self {
33
33
Self :: _0 => 0 ,
34
34
Self :: _1 => 1 ,
35
35
Self :: _2 => 2 ,
@@ -209,6 +209,7 @@ const C2: u32 = 0x1b873593;
209
209
const R1 : u32 = 15 ;
210
210
211
211
impl State {
212
+ #[ allow( clippy:: trivially_copy_pass_by_ref) ]
212
213
fn process_block ( & mut self , block : & MaybeUninit < [ u8 ; 4 ] > ) {
213
214
self . 0 ^= pre_mix ( u32:: from_le_bytes ( unsafe { * block. assume_init_ref ( ) } ) ) ;
214
215
self . 0 = self . 0 . rotate_left ( 13 ) ;
You can’t perform that action at this time.
0 commit comments