Skip to content

Commit 7b6a7bb

Browse files
Merge pull request #1249 from tnull/fix_compile_warnings
Fix compiler warning during building/testing.
2 parents 34cdca9 + 5490366 commit 7b6a7bb

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
@@ -117,7 +117,7 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18;
117117
fn __system_time_size_check() {
118118
// Use 2 * sizeof(u64) as expected size since the expected underlying implementation is storing
119119
// a `Duration` since `SystemTime::UNIX_EPOCH`.
120-
unsafe { core::mem::transmute_copy::<SystemTime, [u8; 16]>(&SystemTime::UNIX_EPOCH); }
120+
unsafe { let _ = core::mem::transmute_copy::<SystemTime, [u8; 16]>(&SystemTime::UNIX_EPOCH); }
121121
}
122122

123123

0 commit comments

Comments
 (0)