From ccf45c38a821ff819e6b52a10631e195bf17139c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 18 Jan 2025 15:51:33 -0500 Subject: [PATCH] Fix some Clippy warnings --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7edf201..d94a5e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -79,7 +79,7 @@ impl AppState { break; } } - if poll == None { + if poll.is_none() { let mut choices = vec![]; for choice in poll_config.choices { choices.push(PollChoice { @@ -256,7 +256,7 @@ async fn poll_frame_vote(State(state): State, jar: CookieJar) -> Html< } } - return None; + None }; for choice in &poll_config.choices { @@ -360,7 +360,7 @@ async fn poll_frame_results(State(state): State, jar: CookieJar) -> Ht } } - return None; + None }; for choice in &poll_config.choices {