From 9e26ea98bd350a2c57249f4e89eb413f55e38853 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 9 May 2023 12:38:21 +0200 Subject: [PATCH] Fix visibility warnings on non-Unix platforms --- quinn-udp/src/fallback.rs | 4 ++-- quinn-udp/src/windows.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/quinn-udp/src/fallback.rs b/quinn-udp/src/fallback.rs index 68be07d98..28e4cb3f4 100644 --- a/quinn-udp/src/fallback.rs +++ b/quinn-udp/src/fallback.rs @@ -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; diff --git a/quinn-udp/src/windows.rs b/quinn-udp/src/windows.rs index 62b7f7149..547a26b2c 100644 --- a/quinn-udp/src/windows.rs +++ b/quinn-udp/src/windows.rs @@ -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 {