style: fix cargo fmt in enroll_identity tests
This commit is contained in:
@ -646,7 +646,10 @@ fn test_get_primary_ip_route_target_priority() {
|
|||||||
!is_container_bridge(&parsed),
|
!is_container_bridge(&parsed),
|
||||||
"Route-based IP should not be Docker bridge"
|
"Route-based IP should not be Docker bridge"
|
||||||
);
|
);
|
||||||
assert!(!parsed.is_loopback(), "Route-based IP should not be loopback");
|
assert!(
|
||||||
|
!parsed.is_loopback(),
|
||||||
|
"Route-based IP should not be loopback"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
@ -672,7 +675,10 @@ fn test_get_route_source_ip_known_target() {
|
|||||||
Ok(ip) => {
|
Ok(ip) => {
|
||||||
let parsed: std::net::Ipv4Addr =
|
let parsed: std::net::Ipv4Addr =
|
||||||
ip.parse().expect("Route source IP should be valid IPv4");
|
ip.parse().expect("Route source IP should be valid IPv4");
|
||||||
assert!(!parsed.is_loopback(), "Route source IP should not be loopback");
|
assert!(
|
||||||
|
!parsed.is_loopback(),
|
||||||
|
"Route source IP should not be loopback"
|
||||||
|
);
|
||||||
assert!(
|
assert!(
|
||||||
!is_container_bridge(&parsed),
|
!is_container_bridge(&parsed),
|
||||||
"Route source IP should not be Docker bridge"
|
"Route source IP should not be Docker bridge"
|
||||||
|
|||||||
Reference in New Issue
Block a user