Skip to content

Commit 6c2a084

Browse files
committed
Fix lints
1 parent d0cedd5 commit 6c2a084

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/percentile.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ pub mod pivot_fn {
579579
// Next, we sort each chunk. Each group is a fixed length, so each sort
580580
// takes constant time. Since we have n/5 chunks, this operation
581581
// is also O(n)
582+
#[allow(clippy::manual_inspect)]
582583
let sorted_chunks = chunks.map(|c| {
583584
c.sort_unstable_by(compare);
584585
c
@@ -736,14 +737,14 @@ pub mod cluster {
736737
list: &'a mut [Cluster],
737738
len: usize,
738739
}
739-
impl<'a> Deref for ClusterMut<'a> {
740+
impl Deref for ClusterMut<'_> {
740741
type Target = [Cluster];
741742
#[inline]
742743
fn deref(&self) -> &Self::Target {
743744
self.list
744745
}
745746
}
746-
impl<'a> DerefMut for ClusterMut<'a> {
747+
impl DerefMut for ClusterMut<'_> {
747748
#[inline]
748749
fn deref_mut(&mut self) -> &mut Self::Target {
749750
self.list
@@ -767,7 +768,7 @@ pub mod cluster {
767768
}
768769
}
769770
}
770-
impl<'a> ClusterMut<'a> {
771+
impl ClusterMut<'_> {
771772
#[inline]
772773
fn list(&self) -> ClusterList {
773774
ClusterList::from(self)

src/regression.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ pub mod theil_sen {
19151915
vec
19161916
}
19171917
}
1918-
impl<'a, T: Copy + Debug> Iterator for PermutationIter<'a, T> {
1918+
impl<T: Copy + Debug> Iterator for PermutationIter<'_, T> {
19191919
type Item = PermutationIterBuffer<T>;
19201920
#[inline]
19211921
fn next(&mut self) -> Option<Self::Item> {
@@ -4017,7 +4017,7 @@ mod utils {
40174017
}
40184018
}
40194019
pub(super) struct BorrowedPolynomial<'a>(pub(super) &'a [f64]);
4020-
impl<'a> Predictive for BorrowedPolynomial<'a> {
4020+
impl Predictive for BorrowedPolynomial<'_> {
40214021
#[inline(always)]
40224022
fn predict_outcome(&self, predictor: f64) -> f64 {
40234023
match self.0.len() {

0 commit comments

Comments
 (0)