You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the `AlignedType` and take a pointer to its inner data, never
access the data directly - this confuses clippy causing a "field is
never used" warning.
Shoosh the lint and add a code comment explaining why.
Copy file name to clipboardexpand all lines: secp256k1-sys/src/types.rs
+1
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ pub use core::ffi::c_void;
19
19
// 16 matches is as big as the biggest alignment in any arch that rust currently supports https://github.com/rust-lang/rust/blob/2c31b45ae878b821975c4ebd94cc1e49f6073fd0/library/std/src/sys_common/alloc.rs
20
20
#[repr(align(16))]
21
21
#[derive(Default,Copy,Clone)]
22
+
#[allow(dead_code)]// We never access the inner data directly, only by way of a pointer.
0 commit comments