net_util: switch from lazy_static to once_cell

Once_cell does not require using macro and is slated to become part of
Rust std at some point.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-06-20 14:10:55 +00:00
committed by Liu Wei
parent 32b855df3a
commit f1dc7f442a
4 changed files with 11 additions and 17 deletions

2
Cargo.lock generated
View File

@@ -554,10 +554,10 @@ version = "0.1.0"
dependencies = [
"epoll",
"getrandom",
"lazy_static",
"libc",
"log",
"net_gen",
"once_cell",
"pnet",
"pnet_datalink",
"rate_limiter",