mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-15 08:36:34 +00:00
Add a few deny lints
And conform to the new ones
This commit is contained in:
@ -263,7 +263,7 @@ impl From<Ipv4Addr> for Ipv4Network {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct Ipv4NetworkIterator {
|
||||
next: Option<u32>,
|
||||
end: u32,
|
||||
|
@ -228,7 +228,7 @@ impl From<Ipv6Addr> for Ipv6Network {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub struct Ipv6NetworkIterator {
|
||||
next: Option<u128>,
|
||||
end: u128,
|
||||
|
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user