Impl Default for a few structs

This commit is contained in:
Jamen Marz
2021-09-21 11:25:54 -06:00
committed by Sébastien Crozet
parent 936f655c67
commit 7aa94e994f
15 changed files with 60 additions and 6 deletions

View File

@@ -19,6 +19,12 @@ pub struct IslandSolver {
position_solver: PositionSolver,
}
impl Default for IslandSolver {
fn default() -> Self {
Self::new()
}
}
impl IslandSolver {
pub fn new() -> Self {
Self {

View File

@@ -133,6 +133,12 @@ pub struct ParallelIslandSolver {
thread: ThreadContext,
}
impl Default for ParallelIslandSolver {
fn default() -> Self {
Self::new()
}
}
impl ParallelIslandSolver {
pub fn new() -> Self {
Self {