commit ed95bb90160c4586f3b58d43e6bce2c5ffbbd7c5
parent d155089de6402237d3921014d7d1d61a9372f6e0
Author: Zack Newman <zack@philomathiclife.com>
Date: Wed, 27 Mar 2024 12:31:13 -0600
add more lints
Diffstat:
3 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -9,14 +9,14 @@ license = "MIT OR Apache-2.0"
name = "superset_map"
readme = "README.md"
repository = "https://git.philomathiclife.com/repos/superset_map/"
-version = "0.2.2"
+version = "0.2.3"
[lib]
name = "superset_map"
path = "src/lib.rs"
[dependencies]
-zfc = { version = "0.3.1", default-features = false }
+zfc = { version = "0.3.2", default-features = false }
[dev-dependencies]
num-bigint = { version = "0.4.4", default-features = false }
diff --git a/src/lib.rs b/src/lib.rs
@@ -136,6 +136,14 @@
#![no_std]
#![feature(btree_cursors)]
#![deny(
+ future_incompatible,
+ let_underscore,
+ missing_docs,
+ nonstandard_style,
+ rust_2018_compatibility,
+ rust_2018_idioms,
+ rust_2021_compatibility,
+ rust_2024_compatibility,
unsafe_code,
unused,
warnings,
diff --git a/src/superset_set.rs b/src/superset_set.rs
@@ -35,7 +35,7 @@ use zfc::{BoundedCardinality, Cardinality, Set};
///
/// This `struct` is created by [`SupersetSet::intersection`].
#[derive(Clone)]
-pub struct Intersection<'a, T: 'a> {
+pub struct Intersection<'a, T> {
/// Iterator for the first `SupersetSet`.
iter_1: Iter<'a, T>,
/// Iterator for the second `SupersetSet`.
@@ -145,7 +145,7 @@ impl<T> Iterator for IntoIter<T> {
///
/// This `struct` is created by [`SupersetSet::iter`].
#[derive(Clone)]
-pub struct Iter<'a, T: 'a> {
+pub struct Iter<'a, T> {
/// Iterator of the values in a `SupersetSet`.
iter: Keys<'a, T, ()>,
}
@@ -181,7 +181,7 @@ impl<'a, T> Iterator for Iter<'a, T> {
///
/// This `struct` is created by [`SupersetSet::range`].
#[derive(Clone)]
-pub struct Range<'a, T: 'a> {
+pub struct Range<'a, T> {
/// Range iterator for a `SupersetSet`.
iter: btree_map::Range<'a, T, ()>,
}
@@ -749,7 +749,7 @@ where
///
/// This `struct` is created by [`SupersetSet::union`].
#[derive(Clone)]
-pub struct Union<'a, T: 'a> {
+pub struct Union<'a, T> {
/// Iterator from the first `SupersetSet`.
iter_1: Iter<'a, T>,
/// Iterator from the second `SupersetSet`.