From: Elias Rohrer Date: Tue, 18 Jan 2022 13:45:43 +0000 (+0100) Subject: Fix unused return warning for 'transmute_copy'. X-Git-Tag: v0.0.105~38^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;ds=inline;h=5490366a95be2d849061e010674bce9c7ebc8bb3;p=rust-lightning Fix unused return warning for 'transmute_copy'. --- 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); } }