Skip to content

Commit 693649f

Browse files
committed
More fixes
1 parent 5d9c99c commit 693649f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/backend/libc/net/netdevice.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#![allow(unsafe_code)]
22

3+
use crate::alloc::string::String;
4+
use crate::alloc::string::ToString;
35
use crate::backend::io::syscalls::ioctl;
46
use crate::fd::AsFd;
57
use crate::ffi::CStr;
6-
#[cfg(all(target_os = "linux", feature = "alloc"))]
78
use crate::ffi::CString;
89
use crate::io;
910
use crate::net::netdevice::open_socket;

src/backend/linux_raw/net/netdevice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#![allow(unsafe_code)]
22

3+
use crate::alloc::string::String;
4+
use crate::alloc::string::ToString;
35
use crate::backend::io::syscalls::ioctl;
46
use crate::fd::AsFd;
57
use crate::ffi::CStr;
6-
#[cfg(all(target_os = "linux", feature = "alloc"))]
78
use crate::ffi::CString;
89
use crate::io;
910
use crate::net::netdevice::open_socket;
10-
use crate::path::Arg;
1111
use core::mem::MaybeUninit;
1212
use core::ptr::{addr_of, addr_of_mut};
1313
use linux_raw_sys::ctypes::c_char;

src/net/netdevice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//!
66
//! [Linux]: https://man7.org/linux/man-pages/man7/netdevice.7.html
77
8+
use crate::alloc::string::String;
89
use crate::fd::OwnedFd;
910
use crate::io;
1011
use crate::io::Errno;

0 commit comments

Comments
 (0)