optimize code structure

This commit is contained in:
wyhaya
2019-08-24 16:36:11 +08:00
parent 7848511160
commit 0c8c84386a
3 changed files with 132 additions and 110 deletions

View File

@@ -3,9 +3,7 @@
#![allow(dead_code)]
use std::io::{Error, ErrorKind};
use std::io::Result;
use std::io::{Error, ErrorKind, Result};
use std::net::{Ipv4Addr, Ipv6Addr};
pub struct BytePacketBuffer {