Skip to content

Commit 0d124d3

Browse files
Fix Windows
1 parent 07aa285 commit 0d124d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const MAX_EXPIRY_TIME: u64 = 60 * 60 * 24 * 356;
5757
fn __system_time_size_check() {
5858
// Use 2 * sizeof(u64) as expected size since the expected underlying implementation is storing
5959
// a `Duration` since `SystemTime::UNIX_EPOCH`.
60-
unsafe { std::mem::transmute::<SystemTime, [u8; 16]>(UNIX_EPOCH); }
60+
unsafe { std::mem::transmute_copy::<SystemTime, [u8; 16]>(&UNIX_EPOCH); }
6161
}
6262

6363

0 commit comments

Comments
 (0)