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:22 +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 {
return 0;
};
let count = nic
.lock()
nic.lock()
.await
.ifcfg()
.snapshot()
.ipv4_routes
.get(route)
.map_or(0, |owners| owners.len());
count
.map_or(0, |owners| owners.len())
}
#[tokio::test]