Browse Source

I hate not having rust-analyzer working

pull/156/head
Jhynjhiruu 11 months ago
parent
commit
bcb2be8cf7
  1. 6
      ctru-rs/src/services/uds.rs

6
ctru-rs/src/services/uds.rs

@ -343,7 +343,7 @@ impl Uds { @@ -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 { @@ -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() };

Loading…
Cancel
Save