mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
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:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user