diff --git a/talpid-core/src/tunnel_state_machine/connected_state.rs b/talpid-core/src/tunnel_state_machine/connected_state.rs index 97947e4e1b3c..687e941aa729 100644 --- a/talpid-core/src/tunnel_state_machine/connected_state.rs +++ b/talpid-core/src/tunnel_state_machine/connected_state.rs @@ -38,7 +38,7 @@ pub struct ConnectedState { impl ConnectedState { #[cfg_attr(target_os = "android", allow(unused_variables))] - pub fn enter( + pub(super) fn enter( shared_values: &mut SharedTunnelStateValues, metadata: TunnelMetadata, tunnel_events: TunnelEventsReceiver, diff --git a/talpid-core/src/tunnel_state_machine/connecting_state.rs b/talpid-core/src/tunnel_state_machine/connecting_state.rs index e9b652dd0cc6..2a728513ff88 100644 --- a/talpid-core/src/tunnel_state_machine/connecting_state.rs +++ b/talpid-core/src/tunnel_state_machine/connecting_state.rs @@ -53,7 +53,7 @@ pub struct ConnectingState { } impl ConnectingState { - pub fn enter( + pub(super) fn enter( shared_values: &mut SharedTunnelStateValues, retry_attempt: u32, ) -> (Box, TunnelStateTransition) { diff --git a/talpid-core/src/tunnel_state_machine/disconnected_state.rs b/talpid-core/src/tunnel_state_machine/disconnected_state.rs index 1dab1e5f923c..5a2cf6fc4d2f 100644 --- a/talpid-core/src/tunnel_state_machine/disconnected_state.rs +++ b/talpid-core/src/tunnel_state_machine/disconnected_state.rs @@ -16,7 +16,7 @@ use talpid_types::ErrorExt; pub struct DisconnectedState(()); impl DisconnectedState { - pub fn enter( + pub(super) fn enter( shared_values: &mut SharedTunnelStateValues, should_reset_firewall: bool, ) -> (Box, TunnelStateTransition) { diff --git a/talpid-core/src/tunnel_state_machine/disconnecting_state.rs b/talpid-core/src/tunnel_state_machine/disconnecting_state.rs index 85f70c5842f5..08248fbac2d8 100644 --- a/talpid-core/src/tunnel_state_machine/disconnecting_state.rs +++ b/talpid-core/src/tunnel_state_machine/disconnecting_state.rs @@ -14,7 +14,7 @@ pub struct DisconnectingState { } impl DisconnectingState { - pub fn enter( + pub(super) fn enter( tunnel_close_tx: oneshot::Sender<()>, tunnel_close_event: TunnelCloseEvent, after_disconnect: AfterDisconnect, diff --git a/talpid-core/src/tunnel_state_machine/error_state.rs b/talpid-core/src/tunnel_state_machine/error_state.rs index 30b933653df5..11a805f7dc0f 100644 --- a/talpid-core/src/tunnel_state_machine/error_state.rs +++ b/talpid-core/src/tunnel_state_machine/error_state.rs @@ -17,7 +17,7 @@ pub struct ErrorState { } impl ErrorState { - pub fn enter( + pub(super) fn enter( shared_values: &mut SharedTunnelStateValues, block_reason: ErrorStateCause, ) -> (Box, TunnelStateTransition) {