Code formatting
This commit is contained in:
+6
-14
@@ -438,13 +438,9 @@ mod song_queue {
|
||||
.map_err(|_e| sqlx::Error::RowNotFound)
|
||||
.unwrap(),
|
||||
user_id: match user_id_result {
|
||||
Ok(id) => {
|
||||
id
|
||||
}
|
||||
Err(_) => {
|
||||
uuid::Uuid::nil()
|
||||
}
|
||||
}
|
||||
Ok(id) => id,
|
||||
Err(_) => uuid::Uuid::nil(),
|
||||
},
|
||||
};
|
||||
|
||||
Ok(song_queue)
|
||||
@@ -565,13 +561,9 @@ mod song_queue {
|
||||
.map_err(|_e| sqlx::Error::RowNotFound)
|
||||
.unwrap(),
|
||||
user_id: match user_id_result {
|
||||
Ok(id) => {
|
||||
id
|
||||
}
|
||||
Err(_) => {
|
||||
uuid::Uuid::nil()
|
||||
}
|
||||
}
|
||||
Ok(id) => id,
|
||||
Err(_) => uuid::Uuid::nil(),
|
||||
},
|
||||
};
|
||||
|
||||
Ok(song_queue)
|
||||
|
||||
+10
-4
@@ -494,8 +494,15 @@ mod tests {
|
||||
|
||||
match super::song_queue_link_req(&app, &song_queue_id, &user_id).await {
|
||||
Ok(response) => {
|
||||
let resp = super::get_resp_data::<crate::callers::song::response::link_user_id::Response>(response).await;
|
||||
assert_eq!(false, resp.data.is_empty(), "The response should not be empty");
|
||||
let resp = super::get_resp_data::<
|
||||
crate::callers::song::response::link_user_id::Response,
|
||||
>(response)
|
||||
.await;
|
||||
assert_eq!(
|
||||
false,
|
||||
resp.data.is_empty(),
|
||||
"The response should not be empty"
|
||||
);
|
||||
|
||||
match super::queue_metadata_req(&app, &song_queue_id).await {
|
||||
Ok(response) => {
|
||||
@@ -514,9 +521,8 @@ mod tests {
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => Err(err)
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user