From c3d25ed4bdca38c747ea78f234f0fc57e82d8cf8 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 7 Apr 2021 13:44:59 -0400 Subject: [PATCH] Fix Windows --- lightning-invoice/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5