diff --git a/src/handler/point.rs b/src/handler/point.rs index b90a54d..6ac5e78 100644 --- a/src/handler/point.rs +++ b/src/handler/point.rs @@ -1,7 +1,8 @@ -锘縰se axum::{Json, extract::{Path, Query, State}, http::HeaderMap, response::IntoResponse}; +use axum::{Json, extract::{Path, Query, State}, http::HeaderMap, response::IntoResponse}; use serde::{Deserialize, Serialize}; use uuid::Uuid; use validator::Validate; +use sqlx::Row; use crate::util::response::ApiErr; diff --git a/src/handler/tag.rs b/src/handler/tag.rs index 06a6e95..8d8fc73 100644 --- a/src/handler/tag.rs +++ b/src/handler/tag.rs @@ -1,5 +1,5 @@ use axum::{Json, extract::{Path, State}, http::StatusCode, response::IntoResponse}; -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use uuid::Uuid; use validator::Validate; diff --git a/src/main.rs b/src/main.rs index 05b0977..312a0cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ use connection::ConnectionManager; use event::EventManager; use std::sync::Arc; use axum::{ - routing::get, + routing::{get, put}, Router, }; diff --git a/src/service.rs b/src/service.rs index 92518fc..68a0171 100644 --- a/src/service.rs +++ b/src/service.rs @@ -218,12 +218,12 @@ pub async fn update_tag( let mut updates = Vec::new(); let mut param_count = 1; - if let Some(n) = name { + if let Some(_n) = name { updates.push(format!("name = ${}", param_count)); param_count += 1; } - if let Some(d) = description { + if let Some(_d) = description { updates.push(format!("description = ${}", param_count)); param_count += 1; }