Clippy code cleanup

This commit is contained in:
2026-08-15 13:22:59 +03:00
parent 9917702c4c
commit e676898135
22 changed files with 290 additions and 171 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ impl DictionaryQuizState {
if self.answer == self.correct
|| split_with_coma(self.correct.as_str()).contains(&self.answer)
{
if self.is_help == false {
if !self.is_help {
self.score.correct += 1;
}
self.show_next()
@@ -208,7 +208,7 @@ impl DictionaryQuizState {
}
fn appeal_button(&self) -> Element<'_, DictionaryQuizMessage> {
if self.is_help && self.no_typing == false {
if self.is_help && !self.no_typing {
return button("Апелляция").style(jl_button).on_press(Appeal).into();
}
space().into()