Add a few deny lints

And conform to the new ones
This commit is contained in:
Abhishek Chanda
2020-01-18 11:03:37 +00:00
parent fc958f16dc
commit f23ea4d7d6
3 changed files with 9 additions and 2 deletions

View File

@ -263,7 +263,7 @@ impl From<Ipv4Addr> for Ipv4Network {
}
}
#[derive(Clone, Debug)]
#[derive(Copy, Clone, Debug)]
pub struct Ipv4NetworkIterator {
next: Option<u32>,
end: u32,

View File

@ -228,7 +228,7 @@ impl From<Ipv6Addr> for Ipv6Network {
}
}
#[derive(Clone, Debug)]
#[derive(Copy, Clone, Debug)]
pub struct Ipv6NetworkIterator {
next: Option<u128>,
end: u128,

View File

@ -5,6 +5,12 @@
#![crate_type = "lib"]
#![doc(html_root_url = "https://docs.rs/ipnetwork/0.16.0")]
#![deny(missing_copy_implementations,
missing_debug_implementations,
unsafe_code,
unused_extern_crates,
unused_import_braces)]
use std::{fmt, net::IpAddr, str::FromStr};
mod common;
@ -325,6 +331,7 @@ enum IpNetworkIteratorInner {
V6(Ipv6NetworkIterator),
}
#[derive(Clone, Debug)]
pub struct IpNetworkIterator {
inner: IpNetworkIteratorInner,
}