mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
Merge pull request 'clippy + ci' (#4) from backend-rust into main
Reviewed-on: nvrl/Holy-Flavor-Rater#4
This commit is contained in:
commit
2bdfb1070d
3 files changed
+4
-2
No files matched your search
@@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user