Revert "Revert "Use the ip crate""

This reverts commit d5422c0fd7.
This commit is contained in:
Abhishek Chanda
2016-02-12 10:48:10 -08:00
parent 168a7b2dcf
commit cff60d0cd9
2 changed files with 7 additions and 2 deletions

View File

@ -4,8 +4,12 @@
#![crate_type = "lib"]
#[allow(dead_code)]
extern crate ip;
use std::fmt;
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use std::net::{Ipv4Addr, Ipv6Addr};
use ip::IpAddr;
// A network
#[derive(Debug)]