Use the ip crate

This commit is contained in:
Abhishek Chanda
2016-01-09 18:02:19 +05:30
parent af84388f00
commit 5f84d3a817
2 changed files with 7 additions and 3 deletions

View File

@ -2,11 +2,14 @@
#![cfg_attr(feature = "dev", feature(plugin))]
#![cfg_attr(feature = "dev", plugin(clippy))]
#![crate_type = "lib"]
#![feature(ip_addr)]
#[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)]