Skip to content

Commit

Permalink
Consistent generic type name.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Oct 18, 2024
1 parent 117ef4e commit d98c8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rs/scramble/puzzles/square1_phase_lookup_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ impl Debug for LookupPattern {
}

impl LookupPattern {
pub fn try_new<C: PatternValidityChecker>(
pub fn try_new<ValidityChecker: PatternValidityChecker>(
full_pattern: &KPattern,
phase_mask: &KPattern,
) -> Option<Self> {
let Ok(masked_pattern) = mask(full_pattern, phase_mask) else {
panic!("Mask application failed");
};

if !C::is_valid(&masked_pattern) {
if !ValidityChecker::is_valid(&masked_pattern) {
return None;
}

Expand Down

0 comments on commit d98c8c3

Please sign in to comment.