From 32be855f657e59ec543b1fea01cce9e4427ffe93 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 13 Nov 2025 13:21:48 +0200 Subject: [PATCH] net.unix: cleanup `const use_net = net.no_timeout` workarounds, use `import net as _` instead --- vlib/net/unix/aasocket.c.v | 4 +--- vlib/net/unix/use_net_and_net_unix_together_test.v | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/vlib/net/unix/aasocket.c.v b/vlib/net/unix/aasocket.c.v index 78e2302bf..583e4c5ec 100644 --- a/vlib/net/unix/aasocket.c.v +++ b/vlib/net/unix/aasocket.c.v @@ -1,8 +1,6 @@ module unix -import net - -const use_net = net.no_timeout +import net as _ const max_sun_path = $if windows { 256 diff --git a/vlib/net/unix/use_net_and_net_unix_together_test.v b/vlib/net/unix/use_net_and_net_unix_together_test.v index 50141d893..18c392af2 100644 --- a/vlib/net/unix/use_net_and_net_unix_together_test.v +++ b/vlib/net/unix/use_net_and_net_unix_together_test.v @@ -1,8 +1,6 @@ import os import net.unix -import net - -const use_net = net.no_timeout // ensure that `net` is used, i.e. no warnings +import net as _ const tfolder = os.join_path(os.temp_dir(), 'nuut_${os.getpid()}') const test_port = os.join_path(tfolder, 'domain_socket') -- 2.39.5