Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinAlexB committed Jan 16, 2025
1 parent fc187c1 commit ea539b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test Rust Project
name: Pipeline

on:
pull_request:
Expand Down
3 changes: 1 addition & 2 deletions cli/src/external_ip/providers/external_ip_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ pub async fn resolve_ipv6_with_url<T: IntoUrl>(url: T) -> Result<Ipv6Addr, Exter
Ok(ip)
}


pub fn is_ipv6_available() -> bool {
TcpListener::bind("[::1]:0").is_ok()
}
}
3 changes: 2 additions & 1 deletion cli/src/external_ip/providers/icanhazip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ mod tests {

#[tokio::test]
async fn test_ipv6() {
if is_ipv6_available() { // Only run test if ipv6 is available on this system.
if is_ipv6_available() {
// Only run test if ipv6 is available on this system.
let ip = resolve_ipv6().await;
assert!(ip.is_ok());
}
Expand Down

0 comments on commit ea539b8

Please sign in to comment.