Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven committed Aug 12, 2024
1 parent ee7428d commit 50e70f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/words.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ where

/// The chirality of a scale word.
pub fn chirality(word: &[Letter]) -> Chirality {
let mut least_mode = least_mode(word);
let mut least_mode_word = least_mode(word);

let word_rev: Vec<usize> = word.iter().cloned().rev().collect();
let least_mode_word_rev = least_mode(&word_rev);

match least_mode.cmp(&least_mode_word_rev) {
match least_mode_word.cmp(&least_mode_word_rev) {
Ordering::Less => Chirality::Right,
Ordering::Equal => Chirality::Achiral,
Ordering::Greater => Chirality::Left,
Expand Down

0 comments on commit 50e70f2

Please sign in to comment.