diff --git a/backend/src/expense.rs b/backend/src/expense.rs index 51641dc..6c1aecd 100644 --- a/backend/src/expense.rs +++ b/backend/src/expense.rs @@ -5,7 +5,7 @@ use sqlx::PgPool; use uuid::Uuid; #[derive(Serialize, Deserialize, Debug)] -struct Expense { +pub struct Expense { id: Uuid, amount: f64, description: String, diff --git a/backend/src/main.rs b/backend/src/main.rs index 8a35700..abe7f3d 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -1,6 +1,5 @@ mod expense; mod user; -mod utils; use actix_cors::Cors; use actix_web::{web, App, HttpServer}; diff --git a/backend/src/user.rs b/backend/src/user.rs index 61f8a09..a118ff0 100644 --- a/backend/src/user.rs +++ b/backend/src/user.rs @@ -21,7 +21,7 @@ async fn get_user(user_id: web::Path) -> impl Responder { }) } -async fn update_user(user_id: web::Path, user: web::Json) -> impl Responder { +async fn update_user(_user_id: web::Path, user: web::Json) -> impl Responder { HttpResponse::Ok().json(user.into_inner()) } diff --git a/backend/src/utils.rs b/backend/src/utils.rs deleted file mode 100644 index 44a154c..0000000 --- a/backend/src/utils.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub fn current_timestamp() -> u64 { - // Return the current timestamp - 0 -}