diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-29 10:29:29 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:18 +0300 |
commit | 730ac1e5cba491456c899d07e3813aedb61cc2b5 (patch) | |
tree | 5092cb4eaed3a19374b4bc3f8f560b953445c5b7 /openpgp/src/packet | |
parent | e060f7f5f186581848cdda5f50d7ddb7ea7d5948 (diff) |
Allow a pointer-to-pointer transmutation
We should arguably use a different approach, but I don't understand
the code enough to suggest how.
Found by clippy lint transmute_ptr_to_ptr:
https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr
Diffstat (limited to 'openpgp/src/packet')
-rw-r--r-- | openpgp/src/packet/key/conversions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/packet/key/conversions.rs b/openpgp/src/packet/key/conversions.rs index 1665e7c5..150e1e9a 100644 --- a/openpgp/src/packet/key/conversions.rs +++ b/openpgp/src/packet/key/conversions.rs @@ -27,6 +27,7 @@ macro_rules! convert { macro_rules! convert_ref { ( $x:ident ) => { // XXX: This is ugly, but how can we do better? + #[allow(clippy::transmute_ptr_to_ptr)] unsafe { std::mem::transmute($x) } } } |