net_util: make constructor fields match struct

Statisfies nightly clippy.

Signed-off-by: Gaelan Steele <gbs@canishe.com>
This commit is contained in:
Gaelan Steele 2021-03-28 23:13:54 -07:00 committed by Sebastien Boeuf
parent 7a18e247f4
commit d72d7fd93c

View File

@ -190,7 +190,7 @@ impl Tap {
return Err(Error::ConfigureTap(IoError::last_os_error()));
}
let tap = Tap { if_name, tap_file };
let tap = Tap { tap_file, if_name };
let offload_flags =
net_gen::TUN_F_CSUM | net_gen::TUN_F_UFO | net_gen::TUN_F_TSO4 | net_gen::TUN_F_TSO6;
let vnet_hdr_size = vnet_hdr_len() as i32;