diff --git a/plot/src/lib.rs b/plot/src/lib.rs index c863e04c..c890df78 100644 --- a/plot/src/lib.rs +++ b/plot/src/lib.rs @@ -69,7 +69,7 @@ //! ``` //! //! - error bars (based on -//! [Julia plotting tutorial](https://plot.ly/julia/error-bars/#Colored-and-Styled-Error-Bars)) +//! [Julia plotting tutorial](https://plot.ly/julia/error-bars/#Colored-and-Styled-Error-Bars)) //! //! ![Plot](error_bar.svg) //! @@ -149,7 +149,7 @@ //! ``` //! //! - Candlesticks (based on -//! [`candlesticks.dem`](http://gnuplot.sourceforge.net/demo/candlesticks.html)) +//! [`candlesticks.dem`](http://gnuplot.sourceforge.net/demo/candlesticks.html)) //! //! ![Plot](candlesticks.svg) //! @@ -285,7 +285,7 @@ //! # })); //! ``` //! - Filled curves (based on -//! [`transparent.dem`](http://gnuplot.sourceforge.net/demo/transparent.html)) +//! [`transparent.dem`](http://gnuplot.sourceforge.net/demo/transparent.html)) //! //! ![Plot](filled_curve.svg) //! diff --git a/src/lib.rs b/src/lib.rs index e3f70f49..2f7fa952 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -351,13 +351,13 @@ pub enum BenchmarkFilter { /// Each benchmark consists of four phases: /// /// - **Warm-up**: The routine is repeatedly executed, to let the CPU/OS/JIT/interpreter adapt to -/// the new load +/// the new load /// - **Measurement**: The routine is repeatedly executed, and timing information is collected into -/// a sample +/// a sample /// - **Analysis**: The sample is analyzed and distilled into meaningful statistics that get -/// reported to stdout, stored in files, and plotted +/// reported to stdout, stored in files, and plotted /// - **Comparison**: The current sample is compared with the sample obtained in the previous -/// benchmark. +/// benchmark. pub struct Criterion { config: BenchmarkConfig, filter: BenchmarkFilter, 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!(); }