Impl Default for a few structs
This commit is contained in:
committed by
Sébastien Crozet
parent
936f655c67
commit
7aa94e994f
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user