Fix visibility warnings on non-Unix platforms

This commit is contained in:
Dirkjan Ochtman
2023-05-09 12:38:21 +02:00
parent 7d006c0d58
commit 9e26ea98bd
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ impl Default for UdpSocketState {
}
/// Returns the platforms UDP socket capabilities
pub fn udp_state() -> super::UdpState {
pub(crate) fn udp_state() -> super::UdpState {
super::UdpState {
max_gso_segments: std::sync::atomic::AtomicUsize::new(1),
gro_segments: 1,
@@ -111,4 +111,4 @@ pub(crate) fn may_fragment() -> bool {
true
}
pub const BATCH_SIZE: usize = 1;
pub(crate) const BATCH_SIZE: usize = 1;
+2 -2
View File
@@ -146,14 +146,14 @@ impl Default for UdpSocketState {
}
/// Returns the platforms UDP socket capabilities
pub fn udp_state() -> super::UdpState {
pub(crate) fn udp_state() -> super::UdpState {
super::UdpState {
max_gso_segments: std::sync::atomic::AtomicUsize::new(1),
gro_segments: 1,
}
}
pub const BATCH_SIZE: usize = 1;
pub(crate) const BATCH_SIZE: usize = 1;
#[inline]
pub(crate) fn may_fragment() -> bool {