diff --git a/client/src/main.rs b/client/src/main.rs index 3a26ffa..282d1ef 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -290,7 +290,7 @@ fn update_hosts_file( for peer in peers { hosts_builder.add_hostname( peer.contents.ip, - &format!("{}.{}.wg", peer.contents.name, interface), + format!("{}.{}.wg", peer.contents.name, interface), ); } match hosts_builder.write_to(&hosts_path).with_path(&hosts_path) { @@ -374,7 +374,7 @@ fn install( if install_opts.delete_invite || Confirm::with_theme(&*prompts::THEME) .wait_for_newline(true) - .with_prompt(&format!( + .with_prompt(format!( "Delete invitation file \"{}\" now? (It's no longer needed)", invite.to_string_lossy().yellow() )) @@ -666,7 +666,7 @@ fn uninstall(interface: &InterfaceName, opts: &Opts, yes: bool) -> Result<(), Er if yes || Confirm::with_theme(&*prompts::THEME) - .with_prompt(&format!( + .with_prompt(format!( "Permanently delete network \"{}\"?", interface.as_str_lossy().yellow() )) diff --git a/server/src/main.rs b/server/src/main.rs index a65ca74..e1cae2e 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -522,7 +522,7 @@ fn uninstall( ) -> Result<(), Error> { if yes || Confirm::with_theme(&*prompts::THEME) - .with_prompt(&format!( + .with_prompt(format!( "Permanently delete network \"{}\"?", interface.as_str_lossy().yellow() )) diff --git a/wireguard-control/src/backends/userspace.rs b/wireguard-control/src/backends/userspace.rs index 2a8a648..961ae23 100644 --- a/wireguard-control/src/backends/userspace.rs +++ b/wireguard-control/src/backends/userspace.rs @@ -278,7 +278,7 @@ fn start_userspace_wireguard(iface: &InterfaceName) -> io::Result { command.args(&[iface.to_string()]).output()? } else { command - .env("WG_TUN_NAME_FILE", &format!("{VAR_RUN_PATH}/{iface}.name")) + .env("WG_TUN_NAME_FILE", format!("{VAR_RUN_PATH}/{iface}.name")) .args(["utun"]) .output()? };