fix: various crate/clippy/ci changes (#181)

* crate: Set default binary to gamedig-cli

* crate: Fix bad no-default-features option on gamedig-id dependency

* ci: Run tests when Cargo.toml changes

* id-tests: Clippy fixes
This commit is contained in:
Tom 2024-01-18 13:34:05 +00:00 committed by GitHub
parent 0f9bada4f3
commit 32dd486632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 11 deletions

View file

@ -150,8 +150,8 @@ pub fn test_game_name_rule(
let mut game_names_same = other_game_name_words.len() == game.words.len();
// Check all words in game name are the same
if game_names_same {
for i in 0 .. game.words.len() {
if game.words[i].to_lowercase() != other_game_name_words[i].to_lowercase() {
for (our_word, their_word) in game.words.iter().zip(other_game_name_words.iter()) {
if our_word.to_lowercase() != their_word.to_lowercase() {
game_names_same = false;
break;
}