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 07aa285 commit 0d124d3Copy full SHA for 0d124d3
lightning-invoice/src/lib.rs
@@ -57,7 +57,7 @@ const MAX_EXPIRY_TIME: u64 = 60 * 60 * 24 * 356;
57
fn __system_time_size_check() {
58
// Use 2 * sizeof(u64) as expected size since the expected underlying implementation is storing
59
// a `Duration` since `SystemTime::UNIX_EPOCH`.
60
- unsafe { std::mem::transmute::<SystemTime, [u8; 16]>(UNIX_EPOCH); }
+ unsafe { std::mem::transmute_copy::<SystemTime, [u8; 16]>(&UNIX_EPOCH); }
61
}
62
63
0 commit comments