From a4e1d1c2d74e36787e2832710256d15cc4db919a Mon Sep 17 00:00:00 2001 From: Alexander Batischev Date: Thu, 29 Apr 2021 22:45:15 +0300 Subject: [PATCH] Bump "average" crate to 0.12 This fixes the following warnings (from rustc 1.51.1): warning: panic message is not a string literal --> rand_distr/tests/value_stability.rs:29:9 | 29 | assert_almost_eq!(self, rhs, 1e-6); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) warning: panic message is not a string literal --> rand_distr/tests/value_stability.rs:34:9 | 34 | assert_almost_eq!(self, rhs, 1e-14); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) warning: panic message is not a string literal --> rand_distr/tests/value_stability.rs:380:9 | 380 | assert_almost_eq!(a, b, 1e-5); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) --- rand_distr/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml index a3072b00..5f0f4c8f 100644 --- a/rand_distr/Cargo.toml +++ b/rand_distr/Cargo.toml @@ -30,4 +30,4 @@ rand_pcg = { version = "0.3.0", path = "../rand_pcg" } # For inline examples rand = { path = "..", version = "0.8.0", default-features = false, features = ["std_rng", "std"] } # Histogram implementation for testing uniformity -average = "0.10.3" +average = { version = "0.12", features = [ "std" ] }