Fix all warnings
This commit is contained in:
parent
34ff825ff0
commit
721e83006d
11 changed files with 57 additions and 71 deletions
|
|
@ -1,21 +1,21 @@
|
|||
use factorio_pathfinding::Pathfinder;
|
||||
use rand::Rng;
|
||||
// use factorio_pathfinding::Pathfinder;
|
||||
// use rand::Rng;
|
||||
|
||||
use crate::Layouter;
|
||||
// use crate::Layouter;
|
||||
|
||||
pub struct GeneticAlgorithmV2 {
|
||||
pub new_layouts: usize,
|
||||
pub mutation_timeout: usize,
|
||||
pub max_mutations: usize,
|
||||
}
|
||||
// pub struct GeneticAlgorithmV2 {
|
||||
// pub new_layouts: usize,
|
||||
// pub mutation_timeout: usize,
|
||||
// pub max_mutations: usize,
|
||||
// }
|
||||
|
||||
impl Layouter for GeneticAlgorithmV2 {
|
||||
fn layout<R: Rng, P: Pathfinder>(
|
||||
&self,
|
||||
input: &crate::LayoutInput,
|
||||
pathfinder: &P,
|
||||
rng: &mut R,
|
||||
) -> Option<crate::LayoutResult> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
// impl Layouter for GeneticAlgorithmV2 {
|
||||
// fn layout<R: Rng, P: Pathfinder>(
|
||||
// &self,
|
||||
// input: &crate::LayoutInput,
|
||||
// pathfinder: &P,
|
||||
// rng: &mut R,
|
||||
// ) -> Option<crate::LayoutResult> {
|
||||
// todo!()
|
||||
// }
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue