Skip to content

Commit

Permalink
Fix wireguard-go-rs build on non-Windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 authored and dlon committed Jan 14, 2025
1 parent a221cf5 commit 017aa7a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wireguard-go-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
//!
//! The [`Tunnel`] type provides a safe Rust wrapper around the C FFI.
use core::{
ffi::{c_char, CStr},
mem::ManuallyDrop,
slice,
};
use core::ffi::{c_char, CStr};
use core::mem::ManuallyDrop;
#[cfg(target_os = "windows")]
use core::mem::MaybeUninit;
use core::slice;
#[cfg(target_os = "windows")]
use std::ffi::CString;
use util::OnDrop;
Expand Down

0 comments on commit 017aa7a

Please sign in to comment.