From 4444640ae4421fe52c8720fc16e9003fea0c12e1 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Wed, 20 Dec 2023 11:07:36 +0100 Subject: [PATCH] Fix privacy modifier If `SpawnResult` is crate-private, the `spawn` function should have the same privacy modifier to not leak a crate-private type. --- mullvad-daemon/src/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mullvad-daemon/src/api.rs b/mullvad-daemon/src/api.rs index 427a63438a80..213402739ae3 100644 --- a/mullvad-daemon/src/api.rs +++ b/mullvad-daemon/src/api.rs @@ -171,13 +171,13 @@ pub struct AccessModeSelector { // TODO(markus): Document this! It was created to get an initial api endpoint in // a more straight-forward way. -pub(super) struct SpawnResult { +pub(crate) struct SpawnResult { pub handle: AccessModeSelectorHandle, pub initial_api_endpoint: AllowedEndpoint, } impl AccessModeSelector { - pub async fn spawn( + pub(crate) async fn spawn( cache_dir: PathBuf, relay_selector: RelaySelector, connection_modes: Vec,