From 0ffad02b79fc380e5e323cf3ed22479806b18595 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 10 Jul 2024 14:02:36 +0700 Subject: [PATCH] clippy: Fix new lints. --- src/plot/gnuplot_backend/summary.rs | 2 +- src/plot/plotters_backend/summary.rs | 2 +- src/stats/univariate/resamples.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plot/gnuplot_backend/summary.rs b/src/plot/gnuplot_backend/summary.rs index 39193c21..12eb6066 100644 --- a/src/plot/gnuplot_backend/summary.rs +++ b/src/plot/gnuplot_backend/summary.rs @@ -68,7 +68,7 @@ pub fn line_comparison( let max = all_curves .iter() .map(|&(_, data)| Sample::new(data).mean()) - .fold(::std::f64::NAN, f64::max); + .fold(f64::NAN, f64::max); let mut dummy = [1.0]; let unit = formatter.scale_values(max, &mut dummy); diff --git a/src/plot/plotters_backend/summary.rs b/src/plot/plotters_backend/summary.rs index 12cd8474..267fb100 100644 --- a/src/plot/plotters_backend/summary.rs +++ b/src/plot/plotters_backend/summary.rs @@ -121,7 +121,7 @@ fn line_comparison_series_data<'a>( let max = all_curves .iter() .map(|&(_, data)| Sample::new(data).mean()) - .fold(::std::f64::NAN, f64::max); + .fold(f64::NAN, f64::max); let mut dummy = [1.0]; let unit = formatter.scale_values(max, &mut dummy); diff --git a/src/stats/univariate/resamples.rs b/src/stats/univariate/resamples.rs index b42c83cc..33bc5b38 100644 --- a/src/stats/univariate/resamples.rs +++ b/src/stats/univariate/resamples.rs @@ -52,7 +52,7 @@ where } if let Some(ref v) = self.stage { - unsafe { mem::transmute::<&[_], _>(v) } + unsafe { mem::transmute::<&[A], &Sample>(v) } } else { unreachable!(); }