We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f5a76f + 518cb58 commit 0751851Copy full SHA for 0751851
2 files changed
src/config.rs
@@ -18,11 +18,10 @@ pub struct Config {
18
}
19
20
fn join_with_comma<T: ToString>(ips: &[T]) -> String {
21
- return ips
22
- .iter()
+ ips.iter()
23
.map(|ip| ip.to_string())
24
.collect::<Vec<String>>()
25
- .join(", ");
+ .join(", ")
26
27
28
impl fmt::Display for Config {
src/nordvpn/server.rs
@@ -11,7 +11,7 @@ pub struct Server {
11
12
impl Server {
13
pub fn supports_ipv6(&self) -> bool {
14
- return self.ip_addresses.iter().any(IpAddr::is_ipv6);
+ self.ip_addresses.iter().any(IpAddr::is_ipv6)
15
16
17
pub fn endpoint(&self) -> String {
0 commit comments