fix: resolve rust compilation errors in tun and dependencies
Build and Release Windows Client / build (push) Failing after 38s

This commit is contained in:
jkortis committed 2026-09-30 23:52:06 -04:00
1 parent d9e9441b40
commit 727d8c41ca
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
use std::ffi::{c_void, OSString, OsString};
use std::ffi::{c_void, OsString};
use std::os::windows::ffi::OsStrExt;
use std::ptr::{null_mut};
use std::io::{self, Read, Write};
@@ -94,7 +94,7 @@ impl TunInterface {
let packet_ptr = *packet_ptr_ptr;
std::ptr::copy_nonoverlapping(buf.as_ptr(), packet_ptr, buf.len());
if WintunSendPacket(self.tx_ring, &mut packet_ptr_ptr) {
if WintunSendPacket(self.tx_ring, packet_ptr_ptr) {
Ok(buf.len())
} else {
Err(io::Error::new(io::ErrorKind::Other, "Failed to send packet"))