Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Nov 28, 2024
1 parent 7cce580 commit 15d7500
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mullvad-cli/src/cmds/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ impl Relay {
Ok(())
}

/// Get active relays which are not bridges.
// Get active relays which are not bridges.

async fn update_constraints(update_fn: impl FnOnce(&mut RelayConstraints)) -> Result<()> {
let mut rpc = MullvadProxyClient::new().await?;
Expand Down
4 changes: 1 addition & 3 deletions mullvad-daemon/src/macos_launch_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ fn daemon_plist_url() -> Object {
/// Path to the plist that defines the Mullvad launch daemon.
/// It must be kept in sync with the path defined in
/// `dist-assets/pkg-scripts/postinstall`.
const DAEMON_PLIST_PATH: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"/Library/LaunchDaemons/net.mullvad.daemon.plist\0")
};
const DAEMON_PLIST_PATH: &CStr = c"/Library/LaunchDaemons/net.mullvad.daemon.plist";

let nsstr_inst: Id = unsafe { msg_send![class!(NSString), alloc] };
let nsstr_inst: Id =
Expand Down
2 changes: 1 addition & 1 deletion mullvad-daemon/src/migrations/v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub struct ShadowsocksProxySettings {
}

// ======================================================
/// This is a closed migration.
// This is a closed migration.

/// We change bridge settings to no longer be an enum with custom and normal variants. It now is a
/// struct which contains a bridge type, a normal relay constraint and optional custom constraints.
Expand Down

0 comments on commit 15d7500

Please sign in to comment.