From 5490366a95be2d849061e010674bce9c7ebc8bb3 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 18 Jan 2022 14:45:43 +0100 Subject: [PATCH] Fix unused return warning for 'transmute_copy'. --- 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 2164f1c53..b6abecf32 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -117,7 +117,7 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY: u64 = 18; 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 { core::mem::transmute_copy::(&SystemTime::UNIX_EPOCH); } + unsafe { let _ = core::mem::transmute_copy::(&SystemTime::UNIX_EPOCH); } } -- 2.39.5