Merge pull request 'clippy + ci' (#4) from backend-rust into main

Reviewed-on: nvrl/Holy-Flavor-Rater#4
This commit is contained in:
nvrl committed 2026-06-15 17:18:50 +02:00
commit 2bdfb1070d
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ use crate::state::AppState;
pub struct Claims { pub struct Claims {
pub user_id: i32, pub user_id: i32,
pub token_type: String, pub token_type: String,
// Read by jsonwebtoken's `validate_exp` during decode, not by our code.
#[allow(dead_code)]
pub exp: usize, pub exp: usize,
} }
+1 -1
View File
@@ -341,7 +341,7 @@ async fn send_test_email(
&state.config.email, &state.config.email,
"Holy Flavors Admin Test Email", "Holy Flavors Admin Test Email",
&body, &body,
&[me.email.clone()], std::slice::from_ref(&me.email),
) )
.await .await
{ {
+1 -1
View File
@@ -733,7 +733,7 @@ async fn signup(
&state.config.email, &state.config.email,
"Verify your Holy Flavors account", "Verify your Holy Flavors account",
&msg, &msg,
&[email.clone()], std::slice::from_ref(&email),
) )
.await .await
{ {