Skip to content

Commit

Permalink
Fix privacy modifier
Browse files Browse the repository at this point in the history
If `SpawnResult` is crate-private, the `spawn` function should have the
same privacy modifier to not leak a crate-private type.
  • Loading branch information
MarkusPettersson98 committed Dec 20, 2023
1 parent 38670ac commit 4444640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mullvad-daemon/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AccessMethodSetting>,
Expand Down

0 comments on commit 4444640

Please sign in to comment.