Skip to content

Commit 314fbcd

Browse files
committed
update edition
1 parent 5402e34 commit 314fbcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "hangman_solver"
33
version = "0.4.2"
4-
edition = "2021"
4+
edition = "2024"
55
repository = "https://github.com/asozialesnetzwerk/hangman_solver"
66
description = "Solves hangman puzzles"
77
license-file = "LICENSE"

src/solver/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub struct Pattern {
143143
letters_in_pattern_have_no_other_occurrences: bool,
144144
}
145145

146+
#[expect(clippy::used_underscore_items)]
146147
impl Pattern {
147148
#[must_use]
148149
#[inline]
@@ -202,8 +203,7 @@ impl Pattern {
202203
) -> bool {
203204
// This only makes sense if first_letter_is_wildcard is false
204205
debug_assert!(!self.first_letter_is_wildcard());
205-
word.first_char()
206-
.map_or(false, |char| self.first_letter == char)
206+
word.first_char() == Some(self.first_letter)
207207
}
208208

209209
#[must_use]

0 commit comments

Comments
 (0)