Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-alpaca committed Dec 10, 2023
1 parent 5d9c99c commit 693649f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/backend/libc/net/netdevice.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#![allow(unsafe_code)]

use crate::alloc::string::String;
use crate::alloc::string::ToString;
use crate::backend::io::syscalls::ioctl;
use crate::fd::AsFd;
use crate::ffi::CStr;
#[cfg(all(target_os = "linux", feature = "alloc"))]
use crate::ffi::CString;
use crate::io;
use crate::net::netdevice::open_socket;
Expand Down
4 changes: 2 additions & 2 deletions src/backend/linux_raw/net/netdevice.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![allow(unsafe_code)]

use crate::alloc::string::String;
use crate::alloc::string::ToString;
use crate::backend::io::syscalls::ioctl;
use crate::fd::AsFd;
use crate::ffi::CStr;
#[cfg(all(target_os = "linux", feature = "alloc"))]
use crate::ffi::CString;
use crate::io;
use crate::net::netdevice::open_socket;
use crate::path::Arg;
use core::mem::MaybeUninit;
use core::ptr::{addr_of, addr_of_mut};
use linux_raw_sys::ctypes::c_char;
Expand Down
1 change: 1 addition & 0 deletions src/net/netdevice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//!
//! [Linux]: https://man7.org/linux/man-pages/man7/netdevice.7.html
use crate::alloc::string::String;
use crate::fd::OwnedFd;
use crate::io;
use crate::io::Errno;
Expand Down

0 comments on commit 693649f

Please sign in to comment.