From daf30bff6e30e7196deb739d6e71d1cddec66be5 Mon Sep 17 00:00:00 2001 From: KKRainbow <443152178@qq.com> Date: Thu, 13 Aug 2026 01:59:22 +0800 Subject: [PATCH] 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. --- easytier/src/tests/shared_virtual_nic.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/easytier/src/tests/shared_virtual_nic.rs b/easytier/src/tests/shared_virtual_nic.rs index a53d0279..3b019052 100644 --- a/easytier/src/tests/shared_virtual_nic.rs +++ b/easytier/src/tests/shared_virtual_nic.rs @@ -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]