Skip to content

Commit 0751851

Browse files
authored
Merge pull request #8 from n-thumann/make_clippy_happy
Change: Remove unneeded return statements
2 parents 4f5a76f + 518cb58 commit 0751851

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/config.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ pub struct Config {
1818
}
1919

2020
fn join_with_comma<T: ToString>(ips: &[T]) -> String {
21-
return ips
22-
.iter()
21+
ips.iter()
2322
.map(|ip| ip.to_string())
2423
.collect::<Vec<String>>()
25-
.join(", ");
24+
.join(", ")
2625
}
2726

2827
impl fmt::Display for Config {

src/nordvpn/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct Server {
1111

1212
impl Server {
1313
pub fn supports_ipv6(&self) -> bool {
14-
return self.ip_addresses.iter().any(IpAddr::is_ipv6);
14+
self.ip_addresses.iter().any(IpAddr::is_ipv6)
1515
}
1616

1717
pub fn endpoint(&self) -> String {

0 commit comments

Comments
 (0)