From bcb2be8cf79666063c35215c75c4c127c9ebeb9a Mon Sep 17 00:00:00 2001 From: Jhynjhiruu Date: Thu, 8 Feb 2024 21:37:52 +0000 Subject: [PATCH] I hate not having rust-analyzer working --- ctru-rs/src/services/uds.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ctru-rs/src/services/uds.rs b/ctru-rs/src/services/uds.rs index 566dba8..8b6caf0 100644 --- a/ctru-rs/src/services/uds.rs +++ b/ctru-rs/src/services/uds.rs @@ -343,7 +343,7 @@ impl Uds { ResultCode(unsafe { ctru_sys::udsScanBeacons( - scan_buf.as_mut_ptr().cast(), + self.scan_buf.as_mut_ptr().cast(), Self::SCAN_BUF_SIZE, networks.as_mut_ptr(), total_networks.as_mut_ptr(), @@ -356,10 +356,6 @@ impl Uds { ) })?; - unsafe { - scan_buf.assume_init_drop(); - } - let networks = unsafe { networks.assume_init() }; let total_networks = unsafe { total_networks.assume_init() };