修复编译错误和警告: 添加缺失的导入,移除未使用的导入和变量
This commit is contained in:
parent
44f4a794d3
commit
c88a0b2398
|
|
@ -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 serde::{Deserialize, Serialize};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
use sqlx::Row;
|
||||||
|
|
||||||
use crate::util::response::ApiErr;
|
use crate::util::response::ApiErr;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
use axum::{Json, extract::{Path, State}, http::StatusCode, response::IntoResponse};
|
use axum::{Json, extract::{Path, State}, http::StatusCode, response::IntoResponse};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::Deserialize;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use connection::ConnectionManager;
|
||||||
use event::EventManager;
|
use event::EventManager;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use axum::{
|
use axum::{
|
||||||
routing::get,
|
routing::{get, put},
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -218,12 +218,12 @@ pub async fn update_tag(
|
||||||
let mut updates = Vec::new();
|
let mut updates = Vec::new();
|
||||||
let mut param_count = 1;
|
let mut param_count = 1;
|
||||||
|
|
||||||
if let Some(n) = name {
|
if let Some(_n) = name {
|
||||||
updates.push(format!("name = ${}", param_count));
|
updates.push(format!("name = ${}", param_count));
|
||||||
param_count += 1;
|
param_count += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(d) = description {
|
if let Some(_d) = description {
|
||||||
updates.push(format!("description = ${}", param_count));
|
updates.push(format!("description = ${}", param_count));
|
||||||
param_count += 1;
|
param_count += 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue