From 449259c8095fb5a21b9d1906fd5f2086dbe1a0e4 Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Thu, 4 Apr 2019 11:21:57 +0200 Subject: [PATCH] Move to 2018 edition. --- Cargo.toml | 1 + examples/parabole.rs | 4 ---- src/lib.rs | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cb3fb29..641d73f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "genetisk" version = "0.1.0" authors = ["logaritmisk "] +edition = "2018" [dependencies] rayon = "1.0" diff --git a/examples/parabole.rs b/examples/parabole.rs index cd5b76c..00ac31b 100644 --- a/examples/parabole.rs +++ b/examples/parabole.rs @@ -1,7 +1,3 @@ -extern crate genetisk; -extern crate rand; -extern crate rayon; - use std::cmp::Ordering; use rand::distributions::{IndependentSample, Range}; diff --git a/src/lib.rs b/src/lib.rs index 0cea4bf..c8a7ffa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,4 @@ -extern crate rayon; - use rayon::prelude::*; - pub trait Individual: Send { type Fitness: Send + Ord;