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;