From e77ce84ca1d6e6e0ea9f3f56797d04f5db639fbe Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Tue, 25 Jun 2019 06:54:39 +0200 Subject: [PATCH] Update rand. --- Cargo.toml | 5 +---- examples/parabole.rs | 3 +-- src/lib.rs | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 641d73f..30873da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,9 @@ name = "parabole" path = "examples/parabole.rs" [dev-dependencies] -rand = "0.4" criterion = "0.2" +rand = "0.6" [[bench]] name = "parabole" harness = false - -[profile.release] -lto = true diff --git a/examples/parabole.rs b/examples/parabole.rs index 00ac31b..e6f5b56 100644 --- a/examples/parabole.rs +++ b/examples/parabole.rs @@ -1,10 +1,9 @@ use std::cmp::Ordering; +use genetisk::{Individual, Simulation, Wrapper}; use rand::distributions::{IndependentSample, Range}; use rayon::prelude::*; -use genetisk::{Individual, Simulation, Wrapper}; - #[derive(Clone, Copy, Debug)] struct Fitness(f64); diff --git a/src/lib.rs b/src/lib.rs index c8a7ffa..102fce2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ use rayon::prelude::*; + pub trait Individual: Send { type Fitness: Send + Ord;