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
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:
@@ -75,11 +75,11 @@ pub async fn register_user(
|
|||||||
|
|
||||||
user.firstname = match payload.firstname {
|
user.firstname = match payload.firstname {
|
||||||
Some(firstname) => firstname,
|
Some(firstname) => firstname,
|
||||||
None => String::new()
|
None => String::new(),
|
||||||
};
|
};
|
||||||
user.lastname = match payload.lastname {
|
user.lastname = match payload.lastname {
|
||||||
Some(lastname) => lastname,
|
Some(lastname) => lastname,
|
||||||
None => String::new()
|
None => String::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("Checking if user exists");
|
println!("Checking if user exists");
|
||||||
|
|||||||
+2
-6
@@ -85,8 +85,7 @@ pub mod user {
|
|||||||
.await;
|
.await;
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
Ok(r) => {
|
Ok(r) => match r {
|
||||||
match r {
|
|
||||||
Some(row) => {
|
Some(row) => {
|
||||||
if row.is_empty() {
|
if row.is_empty() {
|
||||||
Ok(false)
|
Ok(false)
|
||||||
@@ -94,10 +93,7 @@ pub mod user {
|
|||||||
Ok(true)
|
Ok(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {
|
None => Ok(false),
|
||||||
Ok(false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("What??");
|
eprintln!("What??");
|
||||||
|
|||||||
Reference in New Issue
Block a user