We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6ea50 commit f8d0c4bCopy full SHA for f8d0c4b
src/ffi.rs
@@ -87,6 +87,8 @@ pub extern "C" fn crc_fast_digest_update(
87
88
unsafe {
89
let digest = &mut *(*handle).0;
90
+
91
+ #[allow(clippy::unnecessary_cast)]
92
let bytes = slice::from_raw_parts(data as *const u8, len);
93
digest.update(bytes);
94
}
@@ -187,6 +189,7 @@ pub extern "C" fn crc_fast_checksum(
187
189
return 0;
188
190
191
192
193
194
crate::checksum(algorithm.into(), bytes)
195
0 commit comments