mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-31 08:19:14 +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 {
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user