diff --git a/Cargo.toml b/Cargo.toml index f9f8eaf..ba76fed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ simba = { version = "0.9", optional = true, default-features = false } approx = { version = "0.5", optional = true, default-features = false } rug = { version = "1.15", optional = true } -colored = { version = "2.0", optional = true } +colored = { version = "3.0", optional = true } atty = { version = "0.2.14", optional = true } clap = { version = "4.0", optional = true, features = ["cargo"] } clap_autocomplete = { version = "0.4", optional = true } diff --git a/src/percentile.rs b/src/percentile.rs index 3bc67a3..7143017 100644 --- a/src/percentile.rs +++ b/src/percentile.rs @@ -579,6 +579,7 @@ pub mod pivot_fn { // Next, we sort each chunk. Each group is a fixed length, so each sort // takes constant time. Since we have n/5 chunks, this operation // is also O(n) + #[allow(clippy::manual_inspect)] let sorted_chunks = chunks.map(|c| { c.sort_unstable_by(compare); c @@ -736,14 +737,14 @@ pub mod cluster { list: &'a mut [Cluster], len: usize, } - impl<'a> Deref for ClusterMut<'a> { + impl Deref for ClusterMut<'_> { type Target = [Cluster]; #[inline] fn deref(&self) -> &Self::Target { self.list } } - impl<'a> DerefMut for ClusterMut<'a> { + impl DerefMut for ClusterMut<'_> { #[inline] fn deref_mut(&mut self) -> &mut Self::Target { self.list @@ -767,7 +768,7 @@ pub mod cluster { } } } - impl<'a> ClusterMut<'a> { + impl ClusterMut<'_> { #[inline] fn list(&self) -> ClusterList { ClusterList::from(self) diff --git a/src/regression.rs b/src/regression.rs index 6b07c8c..00f8ec3 100644 --- a/src/regression.rs +++ b/src/regression.rs @@ -1915,7 +1915,7 @@ pub mod theil_sen { vec } } - impl<'a, T: Copy + Debug> Iterator for PermutationIter<'a, T> { + impl Iterator for PermutationIter<'_, T> { type Item = PermutationIterBuffer; #[inline] fn next(&mut self) -> Option { @@ -4017,7 +4017,7 @@ mod utils { } } pub(super) struct BorrowedPolynomial<'a>(pub(super) &'a [f64]); - impl<'a> Predictive for BorrowedPolynomial<'a> { + impl Predictive for BorrowedPolynomial<'_> { #[inline(always)] fn predict_outcome(&self, predictor: f64) -> f64 { match self.0.len() {