Fix a compiler warning

This commit is contained in:
Vinzent Steinberg 2017-12-21 10:47:45 +01:00
parent 982acc9bf6
commit 11260d255b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ fn simple() {
#[cfg(feature = "serde")]
#[test]
fn simple_serde() {
let mut a: Skewness = (1..6).map(f64::from).collect();
let a: Skewness = (1..6).map(f64::from).collect();
let b = serde_json::to_string(&a).unwrap();
assert_eq!(&b, "{\"avg\":{\"avg\":{\"avg\":3.0,\"n\":5},\"sum_2\":10.0},\"sum_3\":0.0}");
let mut c: Skewness = serde_json::from_str(&b).unwrap();