summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli/src
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2024-01-04 05:46:23 +0100
committerDavid Lönnhager <david.l@mullvad.net>2024-01-05 17:02:12 +0100
commit5131624541f6a9f456de347b62f69f4c5591c5c4 (patch)
tree0d24ceecbf9299cb8c445d01a1c25f994d0067aa /mullvad-cli/src
parent62df52bb1e7b81d44e0f7bd73ec2aa5882311db9 (diff)
downloadmullvadvpn-5131624541f6a9f456de347b62f69f4c5591c5c4.tar.xz
mullvadvpn-5131624541f6a9f456de347b62f69f4c5591c5c4.zip
Run `cargo +nightly fmt`
Diffstat (limited to 'mullvad-cli/src')
-rw-r--r--mullvad-cli/src/cmds/api_access.rs6
-rw-r--r--mullvad-cli/src/cmds/import_settings.rs4
2 files changed, 6 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/api_access.rs b/mullvad-cli/src/cmds/api_access.rs
index 887d378fa4..8883ea516b 100644
--- a/mullvad-cli/src/cmds/api_access.rs
+++ b/mullvad-cli/src/cmds/api_access.rs
@@ -26,9 +26,11 @@ pub enum ApiAccess {
Enable(SelectItem),
/// Disable an API access method
Disable(SelectItem),
- /// Try to use a specific API access method (If the API is unreachable, reverts back to the previous access method)
+ /// Try to use a specific API access method (If the API is unreachable, reverts back to the
+ /// previous access method)
///
- /// Selecting "Direct" will connect to the Mullvad API without going through any proxy. This connection use https and is therefore encrypted.
+ /// Selecting "Direct" will connect to the Mullvad API without going through any proxy. This
+ /// connection use https and is therefore encrypted.
///
/// Selecting "Mullvad Bridges" respects your current bridge settings
Use(SelectItem),
diff --git a/mullvad-cli/src/cmds/import_settings.rs b/mullvad-cli/src/cmds/import_settings.rs
index a354eb4b95..a89c6814c3 100644
--- a/mullvad-cli/src/cmds/import_settings.rs
+++ b/mullvad-cli/src/cmds/import_settings.rs
@@ -9,8 +9,8 @@ use std::{
/// Maximum size of a settings patch. Bigger files/streams cause the read to fail.
const MAX_PATCH_BYTES: usize = 10 * 1024;
-/// If source is specified, read from the provided file and send it as a settings patch to the daemon.
-/// Otherwise, read the patch from standard input.
+/// If source is specified, read from the provided file and send it as a settings patch to the
+/// daemon. Otherwise, read the patch from standard input.
pub async fn handle(source: String) -> Result<()> {
let json_blob = tokio::task::spawn_blocking(|| get_blob(source))
.await