Skip to content

Commit

Permalink
fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaddison committed Aug 2, 2023
1 parent 4c1293f commit 296fc26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/any/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ macro_rules! delegate {
)*
};
}
pub(self) use delegate;
use delegate;
2 changes: 1 addition & 1 deletion src/concrete/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ macro_rules! impl_try_from_any {
)*
}
}
pub(self) use impl_try_from_any;
use impl_try_from_any;
4 changes: 2 additions & 2 deletions src/concrete/prefix/ord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mod tests {
fn divergent() {
let x = "10.0.0.0/16".parse::<Prefix<Ipv4>>().unwrap();
let y = "10.1.0.0/16".parse::<Prefix<Ipv4>>().unwrap();
assert!(matches!(x.partial_cmp(&y), None));
assert!(x.partial_cmp(&y).is_none());
}
}

Expand Down Expand Up @@ -124,7 +124,7 @@ mod tests {
fn divergent() {
let x = "2001:db8:f::/48".parse::<Prefix<Ipv6>>().unwrap();
let y = "2001:db8:a::/48".parse::<Prefix<Ipv6>>().unwrap();
assert!(matches!(x.partial_cmp(&y), None));
assert!(x.partial_cmp(&y).is_none());
}
}
}

0 comments on commit 296fc26

Please sign in to comment.