Refactor Solver trait to streamline usage
This commit is contained in:
+3
-5
@@ -3,9 +3,7 @@ mod solvers;
|
||||
|
||||
fn main() {
|
||||
println!("### Advent of Code 2025 ###\n");
|
||||
solvers::run(Box::new(
|
||||
solvers::printing_department::PrintingDepartment::new(),
|
||||
));
|
||||
solvers::run(Box::new(solvers::cafeteria::Cafeteria::new()));
|
||||
solvers::run(Box::new(solvers::trash_compactor::TrashCompactor::new()));
|
||||
solvers::run(solvers::printing_department::PrintingDepartment{});
|
||||
solvers::run(solvers::cafeteria::Cafeteria{});
|
||||
solvers::run(solvers::trash_compactor::TrashCompactor {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user