From 4a0a5abb1ac776f52ea802b4d3fb7e6dce5f0200 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 18 Jul 2023 22:56:11 +0200 Subject: [PATCH] reduce the visibility to the parent module --- src/executor/device.rs | 2 +- src/executor/network.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/executor/device.rs b/src/executor/device.rs index b758c66eb5..5011169670 100644 --- a/src/executor/device.rs +++ b/src/executor/device.rs @@ -20,7 +20,7 @@ use crate::arch::kernel::mmio as hardware; use crate::drivers::pci as hardware; #[cfg(not(feature = "dhcpv4"))] use crate::env; -use crate::executor::network::{NetworkInterface, NetworkState}; +use super::network::{NetworkInterface, NetworkState}; /// Data type to determine the mac address #[derive(Debug, Copy, Clone)] diff --git a/src/executor/network.rs b/src/executor/network.rs index 92b1d385b4..2c39cc7fb6 100644 --- a/src/executor/network.rs +++ b/src/executor/network.rs @@ -42,11 +42,11 @@ pub(crate) static NIC: InterruptTicketMutex> = InterruptTicketMutex::new(NetworkState::Missing); pub(crate) struct NetworkInterface<'a> { - pub iface: smoltcp::iface::Interface, - pub sockets: SocketSet<'a>, - pub device: HermitNet, + pub(super) iface: smoltcp::iface::Interface, + pub(super) sockets: SocketSet<'a>, + pub(super) device: HermitNet, #[cfg(feature = "dhcpv4")] - pub dhcp_handle: SocketHandle, + pub(super) dhcp_handle: SocketHandle, } #[cfg(target_arch = "x86_64")]