Make code compatible with Rust 2018
This commit is contained in:
parent
3326a8bb9c
commit
1bdadfae1b
@ -9,6 +9,7 @@ name = "average"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/vks/average"
|
||||
version = "0.10.0"
|
||||
edition = "2018"
|
||||
|
||||
[features]
|
||||
serde1 = ["serde", "serde_derive", "serde-big-array"]
|
||||
|
12
src/lib.rs
12
src/lib.rs
@ -108,12 +108,12 @@ mod quantile;
|
||||
mod traits;
|
||||
#[macro_use] mod histogram;
|
||||
|
||||
pub use moments::{Mean, Variance, Skewness, Kurtosis, MeanWithError};
|
||||
pub use weighted_mean::{WeightedMean, WeightedMeanWithError};
|
||||
pub use minmax::{Min, Max};
|
||||
pub use quantile::Quantile;
|
||||
pub use traits::{Estimate, Merge, Histogram};
|
||||
pub use crate::moments::{Mean, Variance, Skewness, Kurtosis, MeanWithError};
|
||||
pub use crate::weighted_mean::{WeightedMean, WeightedMeanWithError};
|
||||
pub use crate::minmax::{Min, Max};
|
||||
pub use crate::quantile::Quantile;
|
||||
pub use crate::traits::{Estimate, Merge, Histogram};
|
||||
|
||||
define_histogram!(hist, 10);
|
||||
pub use hist::Histogram as Histogram10;
|
||||
pub use crate::hist::Histogram as Histogram10;
|
||||
define_moments!(Moments4, 4);
|
||||
|
@ -20,7 +20,7 @@ use average::{Histogram, Merge};
|
||||
define_histogram!(hist10, 10);
|
||||
define_histogram!(hist100, 100);
|
||||
|
||||
use hist10::Histogram as Histogram10;
|
||||
use crate::hist10::Histogram as Histogram10;
|
||||
|
||||
#[test]
|
||||
fn with_const_width() {
|
||||
|
@ -9,7 +9,7 @@ use core::iter::Iterator;
|
||||
|
||||
use average::Mean;
|
||||
use proptest::prelude::*;
|
||||
use prop::num::f64;
|
||||
use crate::prop::num::f64;
|
||||
|
||||
proptest! {
|
||||
#![proptest_config(ProptestConfig::with_cases(10000))]
|
||||
|
Loading…
Reference in New Issue
Block a user