Fix some Clippy warnings
This commit is contained in:
parent
8780f2bfcf
commit
ccf45c38a8
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue