From 293627bdc613c1ddaf4fc335014cd83a8f9b00ae Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 18 Oct 2025 10:51:44 +0200 Subject: [PATCH] chore: remove unused imports --- env/src/binary_string.rs | 6 ++---- env/src/fitness/mod.rs | 4 ++-- env/src/fitness/real.rs | 2 +- env/src/fitness/sphere.rs | 2 +- env/src/local_search/mod.rs | 2 +- env/src/terminating/mod.rs | 2 +- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/env/src/binary_string.rs b/env/src/binary_string.rs index 75b5ba9c46016a5811b29610a4ade2fd08f54799..208f48193be1ace9e2225a7034925a0d5dc3ab61 100644 --- a/env/src/binary_string.rs +++ b/env/src/binary_string.rs @@ -1,5 +1,5 @@ -use std::{error::Error, str::FromStr}; -use nalgebra::{allocator::Allocator, Const, DefaultAllocator, Dim, DimName, Dynamic, OVector, SVector, U1}; +use std::str::FromStr; +use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector}; use rand::{Rng, RngCore}; use thiserror::Error; @@ -126,8 +126,6 @@ pub mod tests { use crate::{binary_string::{BinaryString, BinaryStringConversionError}, test_infra::{load_test_file, DataArrOfReals}}; use nalgebra::SVector; - use super::Bounds; - #[test] fn test_binary_string_to_real_single() { assert_eq!( diff --git a/env/src/fitness/mod.rs b/env/src/fitness/mod.rs index 0dcccaf665133d1b62c25a7eb3da71ea8df3ae0b..b2bfa6dbe5f6aa5ffec3b3b74c1381aa59afd31a 100644 --- a/env/src/fitness/mod.rs +++ b/env/src/fitness/mod.rs @@ -1,8 +1,8 @@ use std::{convert::Infallible, error::Error}; -use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector, SVector}; +use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector}; -use crate::binary_string::{BinaryString, BinaryStringConversionError, Bounds}; +use crate::binary_string::{BinaryString, BinaryStringConversionError}; pub mod labs; pub mod one_max; diff --git a/env/src/fitness/real.rs b/env/src/fitness/real.rs index 605db0528b75c034efbd43e1b5ceee2886c93f8a..0f463a4feefd63bfb7ba57dcc863c5407a856e9e 100644 --- a/env/src/fitness/real.rs +++ b/env/src/fitness/real.rs @@ -1,6 +1,6 @@ use std::{convert::Infallible, f64::consts::PI, marker::PhantomData}; -use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector, SVector, U1}; +use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector, U1}; use super::FitnessFunction; diff --git a/env/src/fitness/sphere.rs b/env/src/fitness/sphere.rs index dfe2b9cfb4323e5b4bc58b83b2df9634cc751e1d..c04955798d6bb8487b50745e0af3cda7aa037842 100644 --- a/env/src/fitness/sphere.rs +++ b/env/src/fitness/sphere.rs @@ -1,5 +1,5 @@ use std::convert::Infallible; -use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector, SVector}; +use nalgebra::{allocator::Allocator, DefaultAllocator, Dim, OVector}; use super::FitnessFunction; diff --git a/env/src/local_search/mod.rs b/env/src/local_search/mod.rs index c3ca90ff25e2f6709386c6c0d31d32e0b52610ed..33557e1c4691f2bbb79cda6a8d0d2e30ba73873d 100644 --- a/env/src/local_search/mod.rs +++ b/env/src/local_search/mod.rs @@ -275,7 +275,7 @@ pub fn plot_fitness_evolution(file: &str, stats: LocalSearchStats {