Skip to content

Commit

Permalink
fixup: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Oct 14, 2023
1 parent 5a6098d commit b7ad42f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion talpid-core/src/tunnel_state_machine/connected_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion talpid-core/src/tunnel_state_machine/connecting_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct ConnectingState {
}

impl ConnectingState {
pub fn enter(
pub(super) fn enter(
shared_values: &mut SharedTunnelStateValues,
retry_attempt: u32,
) -> (Box<dyn TunnelState>, TunnelStateTransition) {
Expand Down
2 changes: 1 addition & 1 deletion talpid-core/src/tunnel_state_machine/disconnected_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn TunnelState>, TunnelStateTransition) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion talpid-core/src/tunnel_state_machine/error_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct ErrorState {
}

impl ErrorState {
pub fn enter(
pub(super) fn enter(
shared_values: &mut SharedTunnelStateValues,
block_reason: ErrorStateCause,
) -> (Box<dyn TunnelState>, TunnelStateTransition) {
Expand Down

0 comments on commit b7ad42f

Please sign in to comment.