File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
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) ]
51
+ #![ warn( clippy:: use_self, clippy:: doc_markdown, clippy :: ptr_as_ptr ) ]
52
52
#![ no_std]
53
53
54
54
use core:: fmt;
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl core::hash::Hasher for Hasher {
176
176
for block in body. chunks ( 4 ) {
177
177
if block. len ( ) == 4 {
178
178
self . state
179
- . process_block ( unsafe { & * ( block. as_ptr ( ) as * const _ ) } ) ;
179
+ . process_block ( unsafe { & * ( block. as_ptr ( ) . cast ( ) ) } ) ;
180
180
} else {
181
181
// NOTE(unsafe) In this branch, `block.len() < 4`. For CASE 1 and CASE 2 above,
182
182
// `self.index.usize()` will be 0 here, so `self.index.usize() + block.len() < 4`.
You can’t perform that action at this time.
0 commit comments