cargo fmt
Rust Build / Check (pull_request) Failing after 30s
Rust Build / Test Suite (pull_request) Failing after 1m0s
Rust Build / Rustfmt (pull_request) Failing after 36s
Rust Build / Clippy (pull_request) Failing after 40s
Rust Build / build (pull_request) Failing after 1m8s

This commit is contained in:
2026-06-07 18:30:11 -04:00
parent 69f937d5f3
commit ec80f1089f
2 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -75,11 +75,11 @@ pub async fn register_user(
user.firstname = match payload.firstname {
Some(firstname) => firstname,
None => String::new()
None => String::new(),
};
user.lastname = match payload.lastname {
Some(lastname) => lastname,
None => String::new()
None => String::new(),
};
println!("Checking if user exists");
+6 -10
View File
@@ -85,19 +85,15 @@ pub mod user {
.await;
match result {
Ok(r) => {
match r {
Some(row) => {
if row.is_empty() {
Ok(false)
} else {
Ok(true)
}
}
None => {
Ok(r) => match r {
Some(row) => {
if row.is_empty() {
Ok(false)
} else {
Ok(true)
}
}
None => Ok(false),
},
Err(e) => {
eprintln!("What??");