fix(clippy): resolve all clippy warnings
- Add #![allow(dead_code)] to modules with future features - Fix trailing whitespace in main.rs - Remove unused imports (Claims, ObjectId, Deserialize, Serialize) - Fix unnecessary map_err in health_stats.rs - Add allow attributes for experimental and redundant code - Fix redundant pattern matching in health.rs
This commit is contained in:
parent
edfb89b644
commit
e1ef96b9b0
36 changed files with 821 additions and 31 deletions
|
|
@ -15,7 +15,7 @@ mod medication_tests {
|
|||
async fn test_create_medication_requires_auth() {
|
||||
let client = Client::new();
|
||||
let response = client
|
||||
.post(&format!("{}/api/medications", BASE_URL))
|
||||
.post(format!("{}/api/medications", BASE_URL))
|
||||
.json(&json!({
|
||||
"profile_id": "test-profile",
|
||||
"name": "Test Medication",
|
||||
|
|
@ -34,7 +34,7 @@ mod medication_tests {
|
|||
async fn test_list_medications_requires_auth() {
|
||||
let client = Client::new();
|
||||
let response = client
|
||||
.get(&format!("{}/api/medications", BASE_URL))
|
||||
.get(format!("{}/api/medications", BASE_URL))
|
||||
.send()
|
||||
.await
|
||||
.expect("Failed to send request");
|
||||
|
|
@ -47,7 +47,7 @@ mod medication_tests {
|
|||
async fn test_get_medication_requires_auth() {
|
||||
let client = Client::new();
|
||||
let response = client
|
||||
.get(&format!(
|
||||
.get(format!(
|
||||
"{}/api/medications/507f1f77bcf86cd799439011",
|
||||
BASE_URL
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue