1
0

Refactor Solver trait to streamline usage

This commit is contained in:
Stefan Müller
2025-12-08 14:38:02 +01:00
parent ad64b05db7
commit 496293b33b
5 changed files with 63 additions and 123 deletions
+3 -5
View File
@@ -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 {});
}