Skip to content

Commit

Permalink
refactor: replace old code with VexSpacerSolution.get_thickness
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcouch committed Jun 9, 2024
1 parent 044a014 commit 16a21b6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ impl VexLength {
current_solution: VexSpacerSolution,
solutions: &mut Vec<VexSpacerSolution>,
) {
let mut spacers_length: Length = Length::default();

for spacer in current_solution.spacers.clone() {
spacers_length += spacer.thickness;
}
let spacers_length: Length = current_solution.get_thickness();

if &spacers_length == length {
let mut current_solution = current_solution.clone();
Expand Down

0 comments on commit 16a21b6

Please sign in to comment.