Skip to content

Commit

Permalink
clippy: Fix new lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 10, 2024
1 parent f1ea31a commit 0ffad02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plot/gnuplot_backend/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plot/plotters_backend/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/stats/univariate/resamples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ where
}

if let Some(ref v) = self.stage {
unsafe { mem::transmute::<&[_], _>(v) }
unsafe { mem::transmute::<&[A], &Sample<A>>(v) }
} else {
unreachable!();
}
Expand Down

0 comments on commit 0ffad02

Please sign in to comment.