File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " hangman_solver"
33version = " 0.4.2"
4- edition = " 2021 "
4+ edition = " 2024 "
55repository = " https://github.com/asozialesnetzwerk/hangman_solver"
66description = " Solves hangman puzzles"
77license-file = " LICENSE"
Original file line number Diff line number Diff 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) ]
146147impl 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]
You can’t perform that action at this time.
0 commit comments