Fix some Clippy warnings

This commit is contained in:
Joshua Goins 2025-01-18 15:51:33 -05:00
parent 8780f2bfcf
commit ccf45c38a8

View file

@ -79,7 +79,7 @@ impl AppState {
break; break;
} }
} }
if poll == None { if poll.is_none() {
let mut choices = vec![]; let mut choices = vec![];
for choice in poll_config.choices { for choice in poll_config.choices {
choices.push(PollChoice { choices.push(PollChoice {
@ -256,7 +256,7 @@ async fn poll_frame_vote(State(state): State<AppState>, jar: CookieJar) -> Html<
} }
} }
return None; None
}; };
for choice in &poll_config.choices { for choice in &poll_config.choices {
@ -360,7 +360,7 @@ async fn poll_frame_results(State(state): State<AppState>, jar: CookieJar) -> Ht
} }
} }
return None; None
}; };
for choice in &poll_config.choices { for choice in &poll_config.choices {