修复编译错误和警告: 添加缺失的导入,移除未使用的导入和变量

This commit is contained in:
caoqianming 2026-03-03 13:39:58 +08:00
parent 44f4a794d3
commit c88a0b2398
4 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -17,7 +17,7 @@ use connection::ConnectionManager;
use event::EventManager;
use std::sync::Arc;
use axum::{
routing::get,
routing::{get, put},
Router,
};

View File

@ -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;
}