net_get, net_util: Move crate to rust 2018 edition

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-05-11 14:19:04 +00:00 committed by Sebastien Boeuf
parent 6895e634cc
commit c03fe508c1
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
name = "net_gen"
version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2018"
[dependencies]
vmm-sys-util = ">=0.3.1"

View File

@ -2,6 +2,7 @@
name = "net_util"
version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2018"
[dependencies]
epoll = ">=4.0.1"

View File

@ -6,8 +6,7 @@
// found in the THIRD-PARTY file.
use super::{create_sockaddr, create_socket, vnet_hdr_len, Error as NetUtilError, MacAddr};
use mac::MAC_ADDR_LEN;
use net_gen;
use crate::mac::MAC_ADDR_LEN;
use std::fs::File;
use std::io::{Error as IoError, Read, Result as IoResult, Write};
use std::net;