test(shared-tun): satisfy strict clippy check

Return the shared route owner count expression directly so the new root
integration helper passes the workspace -D warnings lint gate.
This commit is contained in:
KKRainbow
2026-08-13 01:59:44 +08:00
parent b5bc4a853d
commit daf30bff6e
+2 -4
View File
@@ -238,15 +238,13 @@ async fn shared_route_owner_count(
let Some(nic) = nic else { let Some(nic) = nic else {
return 0; return 0;
}; };
let count = nic nic.lock()
.lock()
.await .await
.ifcfg() .ifcfg()
.snapshot() .snapshot()
.ipv4_routes .ipv4_routes
.get(route) .get(route)
.map_or(0, |owners| owners.len()); .map_or(0, |owners| owners.len())
count
} }
#[tokio::test] #[tokio::test]