From: Valentine Wallace Date: Wed, 7 Apr 2021 17:44:59 +0000 (-0400) Subject: Fix Windows X-Git-Tag: v0.0.14~31^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=c3d25ed4bdca38c747ea78f234f0fc57e82d8cf8;p=rust-lightning Fix Windows --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 62e5bf168..e9ca442f2 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -57,7 +57,7 @@ const MAX_EXPIRY_TIME: u64 = 60 * 60 * 24 * 356; fn __system_time_size_check() { // Use 2 * sizeof(u64) as expected size since the expected underlying implementation is storing // a `Duration` since `SystemTime::UNIX_EPOCH`. - unsafe { std::mem::transmute::(UNIX_EPOCH); } + unsafe { std::mem::transmute_copy::(&UNIX_EPOCH); } }