Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Jun 25, 2024
1 parent 8ca1b72 commit e47185c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2093,28 +2093,6 @@ pub mod theil_sen {
// See https://stats.stackexchange.com/a/96166
// for reference.
let median = {
#[derive(Debug, Clone, Copy)]
struct CmpFirst<T, V>(T, V);
impl<T: PartialEq, V> PartialEq for CmpFirst<T, V> {
#[inline]
fn eq(&self, other: &Self) -> bool {
self.0.eq(&other.0)
}
}
impl<T: PartialEq + Eq, V> Eq for CmpFirst<T, V> {}
impl<T: PartialOrd, V> PartialOrd for CmpFirst<T, V> {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.0.partial_cmp(&other.0)
}
}
impl<T: Ord, V> Ord for CmpFirst<T, V> {
#[inline]
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.0.cmp(&other.0)
}
}

let mut values: Vec<_> = predictors.iter().zip(outcomes.iter()).collect();
match percentile::percentile_default_pivot_by(
&mut values,
Expand Down

0 comments on commit e47185c

Please sign in to comment.