From 14a951707c0e8ac6b188cdd9e5572297880415ac Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 18 Jul 2022 10:15:38 -0700 Subject: [PATCH] Fix new nightly warning about unused return value (#1917) --- crates/libs/bindgen/src/delegates.rs | 2 +- crates/libs/implement/src/lib.rs | 2 +- .../Windows/ApplicationModel/Background/mod.rs | 6 +++--- .../ApplicationModel/DataTransfer/mod.rs | 4 ++-- .../Windows/ApplicationModel/Payments/mod.rs | 2 +- .../src/Windows/ApplicationModel/Store/mod.rs | 2 +- .../libs/windows/src/Windows/Data/Text/mod.rs | 4 ++-- .../Windows/Devices/Perception/Provider/mod.rs | 4 ++-- .../src/Windows/Devices/SmartCards/mod.rs | 2 +- .../windows/src/Windows/Devices/Sms/mod.rs | 4 ++-- .../src/Windows/Foundation/Collections/mod.rs | 4 ++-- .../libs/windows/src/Windows/Foundation/mod.rs | 18 +++++++++--------- .../Gaming/Preview/GamesEnumeration/mod.rs | 4 ++-- .../src/Windows/Graphics/Display/mod.rs | 2 +- .../src/Windows/Graphics/Printing/mod.rs | 2 +- .../src/Windows/Graphics/Printing3D/mod.rs | 2 +- .../windows/src/Windows/Media/Capture/mod.rs | 4 ++-- .../windows/src/Windows/Media/Devices/mod.rs | 8 ++++---- .../src/Windows/Media/Protection/mod.rs | 6 +++--- .../src/Windows/Networking/Connectivity/mod.rs | 2 +- .../src/Windows/Networking/Proximity/mod.rs | 8 ++++---- .../src/Windows/Security/Isolation/mod.rs | 4 ++-- crates/libs/windows/src/Windows/Storage/mod.rs | 4 ++-- .../Windows/System/RemoteDesktop/Input/mod.rs | 2 +- .../src/Windows/System/Threading/Core/mod.rs | 2 +- .../src/Windows/System/Threading/mod.rs | 6 +++--- crates/libs/windows/src/Windows/System/mod.rs | 2 +- .../src/Windows/UI/ApplicationSettings/mod.rs | 6 +++--- crates/libs/windows/src/Windows/UI/Core/mod.rs | 4 ++-- .../libs/windows/src/Windows/UI/Popups/mod.rs | 2 +- .../windows/src/Windows/UI/WebUI/Core/mod.rs | 6 +++--- .../libs/windows/src/Windows/UI/WebUI/mod.rs | 14 +++++++------- crates/libs/windows/src/core/weak_ref_count.rs | 2 +- 33 files changed, 73 insertions(+), 73 deletions(-) diff --git a/crates/libs/bindgen/src/delegates.rs b/crates/libs/bindgen/src/delegates.rs index ca7ed28557..e0cc71cf9e 100644 --- a/crates/libs/bindgen/src/delegates.rs +++ b/crates/libs/bindgen/src/delegates.rs @@ -129,7 +129,7 @@ fn gen_win_delegate(gen: &Gen, def: TypeDef) -> TokenStream { let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 925af6ab25..a4ce12f11f 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -138,7 +138,7 @@ pub fn implement(attributes: proc_macro::TokenStream, original_type: proc_macro: let remaining = self.count.release(); if remaining == 0 { unsafe { - ::std::boxed::Box::from_raw(self as *const Self as *mut Self); + let _ = ::std::boxed::Box::from_raw(self as *const Self as *mut Self); } } remaining diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs index 52d90732a4..704daabef0 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Background/mod.rs @@ -1117,7 +1117,7 @@ impl, BackgroundTaskCa let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1327,7 +1327,7 @@ impl, &::core::opti let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1567,7 +1567,7 @@ impl, &::core::opti let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs index 5c37e369a3..a6ff1921c6 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/DataTransfer/mod.rs @@ -1875,7 +1875,7 @@ impl) -> ::windows::core:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -3787,7 +3787,7 @@ impl) -> ::windows::cor let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs index 2e5eb4827c..9e52255e22 100644 --- a/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs +++ b/crates/libs/windows/src/Windows/ApplicationModel/Payments/mod.rs @@ -2322,7 +2322,7 @@ impl, &::core::option::Option

::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Data/Text/mod.rs b/crates/libs/windows/src/Windows/Data/Text/mod.rs index 485fd32399..6e83bec79d 100644 --- a/crates/libs/windows/src/Windows/Data/Text/mod.rs +++ b/crates/libs/windows/src/Windows/Data/Text/mod.rs @@ -597,7 +597,7 @@ impl) -> ::w let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1899,7 +1899,7 @@ impl) -> ::w let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs index 7a1dac1a3b..121ce2d851 100644 --- a/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/SmartCards/mod.rs @@ -5048,7 +5048,7 @@ impl, &::core::option::O let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs index 6c3ceaec48..1ef14a15a6 100644 --- a/crates/libs/windows/src/Windows/Devices/Sms/mod.rs +++ b/crates/libs/windows/src/Windows/Devices/Sms/mod.rs @@ -4154,7 +4154,7 @@ impl) -> ::windows::core::Result<()> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -4884,7 +4884,7 @@ impl, &::core::option::Option, AsyncStatus) -> ::windows:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -147,7 +147,7 @@ impl ::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -913,7 +913,7 @@ impl) -> ::windows::core::Result let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -503,7 +503,7 @@ impl ::windows::core::Result<()> + ::core let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs index a224934bc0..c4e26c563d 100644 --- a/crates/libs/windows/src/Windows/Graphics/Display/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Display/mod.rs @@ -1649,7 +1649,7 @@ impl) -> ::windo let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs index cf97a16600..135137a61a 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing/mod.rs @@ -3118,7 +3118,7 @@ impl) -> ::window let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs index 335ef48ed2..abba8fa0b0 100644 --- a/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs +++ b/crates/libs/windows/src/Windows/Graphics/Printing3D/mod.rs @@ -1543,7 +1543,7 @@ impl) -> ::wind let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Media/Capture/mod.rs b/crates/libs/windows/src/Windows/Media/Capture/mod.rs index 8602694947..dcf480a589 100644 --- a/crates/libs/windows/src/Windows/Media/Capture/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Capture/mod.rs @@ -12038,7 +12038,7 @@ impl, &::core::option::Option) -> ::windows::core::Result< let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Media/Devices/mod.rs b/crates/libs/windows/src/Windows/Media/Devices/mod.rs index 2a77d89901..4bedeae1a8 100644 --- a/crates/libs/windows/src/Windows/Media/Devices/mod.rs +++ b/crates/libs/windows/src/Windows/Media/Devices/mod.rs @@ -1000,7 +1000,7 @@ impl) -> ::windows::core::Result<( let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1810,7 +1810,7 @@ impl, &::core::option::Option, &::core::option::Option, &::core::option::Option, &::core::option:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1211,7 +1211,7 @@ impl) -> ::windows::cor let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1679,7 +1679,7 @@ impl, &::core::option:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs index 986da8a63d..a85907a16b 100644 --- a/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Connectivity/mod.rs @@ -3164,7 +3164,7 @@ impl) -> ::windo let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs index 6fdb3cb5f7..554f88e8f5 100644 --- a/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs +++ b/crates/libs/windows/src/Windows/Networking/Proximity/mod.rs @@ -117,7 +117,7 @@ impl) -> ::windows::core::Resu let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -204,7 +204,7 @@ impl) -> ::windows::core::Resu let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -583,7 +583,7 @@ impl, &::core::option::Option< let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -670,7 +670,7 @@ impl, i64) -> ::windows::core: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs index 56d376014d..d9cdb98e0c 100644 --- a/crates/libs/windows/src/Windows/Security/Isolation/mod.rs +++ b/crates/libs/windows/src/Windows/Security/Isolation/mod.rs @@ -50,7 +50,7 @@ impl) -> ::windows::core::Re let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -8031,7 +8031,7 @@ impl) -> ::windows::co let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs index 577405c949..47c4a6a8a9 100644 --- a/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs +++ b/crates/libs/windows/src/Windows/System/RemoteDesktop/Input/mod.rs @@ -205,7 +205,7 @@ impl ::windows::core::Result + ::core::marker::Send + ' let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs index dc74123031..c867727030 100644 --- a/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/Core/mod.rs @@ -233,7 +233,7 @@ impl, bool) -> ::windows::core: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/System/Threading/mod.rs b/crates/libs/windows/src/Windows/System/Threading/mod.rs index abf8cdd42b..ad9d2824c2 100644 --- a/crates/libs/windows/src/Windows/System/Threading/mod.rs +++ b/crates/libs/windows/src/Windows/System/Threading/mod.rs @@ -303,7 +303,7 @@ impl) -> ::windows::core::Resu let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -390,7 +390,7 @@ impl) -> ::windows::core::Resu let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -484,7 +484,7 @@ impl) - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/System/mod.rs b/crates/libs/windows/src/Windows/System/mod.rs index 3d75460b2f..8e2bbf308b 100644 --- a/crates/libs/windows/src/Windows/System/mod.rs +++ b/crates/libs/windows/src/Windows/System/mod.rs @@ -2414,7 +2414,7 @@ impl ::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs index ec1fd2764e..b36714785e 100644 --- a/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs +++ b/crates/libs/windows/src/Windows/UI/ApplicationSettings/mod.rs @@ -494,7 +494,7 @@ impl) -> ::windows::core::Re let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1689,7 +1689,7 @@ impl, &::core::option::Optio let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1946,7 +1946,7 @@ impl) -> ::windows:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/UI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/Core/mod.rs index bf67ea8b2b..5c92515001 100644 --- a/crates/libs/windows/src/Windows/UI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Core/mod.rs @@ -3949,7 +3949,7 @@ impl ::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -6614,7 +6614,7 @@ impl) -> ::windows:: let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/UI/Popups/mod.rs b/crates/libs/windows/src/Windows/UI/Popups/mod.rs index 6e3db4c597..dc47f3f267 100644 --- a/crates/libs/windows/src/Windows/UI/Popups/mod.rs +++ b/crates/libs/windows/src/Windows/UI/Popups/mod.rs @@ -767,7 +767,7 @@ impl) -> ::windows::core::Result<() let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs index c924252392..03d8d2f741 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/Core/mod.rs @@ -389,7 +389,7 @@ impl ::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -473,7 +473,7 @@ impl ::windows::core::Result<()> + ::core::marker::Send + 'static> let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -560,7 +560,7 @@ impl) -> : let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs index 82e04747b8..1444ea10ec 100644 --- a/crates/libs/windows/src/Windows/UI/WebUI/mod.rs +++ b/crates/libs/windows/src/Windows/UI/WebUI/mod.rs @@ -122,7 +122,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -414,7 +414,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -634,7 +634,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1592,7 +1592,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1691,7 +1691,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -1911,7 +1911,7 @@ impl) -> ::windo let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } @@ -2225,7 +2225,7 @@ impl, &::core::o let this = this as *mut *mut ::core::ffi::c_void as *mut Self; let remaining = (*this).count.release(); if remaining == 0 { - ::windows::core::alloc::boxed::Box::from_raw(this); + let _ = ::windows::core::alloc::boxed::Box::from_raw(this); } remaining } diff --git a/crates/libs/windows/src/core/weak_ref_count.rs b/crates/libs/windows/src/core/weak_ref_count.rs index 419528b553..b1b9e7561b 100644 --- a/crates/libs/windows/src/core/weak_ref_count.rs +++ b/crates/libs/windows/src/core/weak_ref_count.rs @@ -189,7 +189,7 @@ impl TearOff { // If there are no remaining references, it means that the object has already been // destroyed. Go ahead and destroy the tear-off. if remaining == 0 { - windows::core::alloc::boxed::Box::from_raw(this); + let _ = windows::core::alloc::boxed::Box::from_raw(this); } remaining