Apply cargo fmt

This commit is contained in:
Andrey Golovizin 2023-04-15 13:56:24 +02:00
parent 10cdbce746
commit 0d30090e5b
2 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,5 @@
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, ToSocketAddrs};
use anyhow::anyhow; use anyhow::anyhow;
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, ToSocketAddrs};
use log::debug; use log::debug;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -41,7 +41,9 @@ impl Location {
&endpoint_addr_with_port &endpoint_addr_with_port
}; };
let mut endpoints = endpoint_addr.to_socket_addrs()?; let mut endpoints = endpoint_addr.to_socket_addrs()?;
endpoints.next().ok_or_else(|| anyhow!("no valid endpoint address")) endpoints
.next()
.ok_or_else(|| anyhow!("no valid endpoint address"))
} }
} }

View file

@ -9,7 +9,10 @@ use std::path::PathBuf;
use clap::{Parser, Subcommand}; use clap::{Parser, Subcommand};
use log::debug; use log::debug;
use crate::{keys::{get_keys, WireguardKeyPair}, config::MachineConfig}; use crate::{
config::MachineConfig,
keys::{get_keys, WireguardKeyPair},
};
/// AzireVPN client /// AzireVPN client
#[derive(Parser, Debug)] #[derive(Parser, Debug)]