代码警告消除和优化

This commit is contained in:
xintaofei
2026-03-09 10:05:22 +08:00
parent 2b4f00484d
commit 46b276443b
10 changed files with 64 additions and 53 deletions

View File

@@ -194,7 +194,7 @@ async fn reorder_once(conn: &DatabaseConnection, agent_types: &[AgentType]) -> R
}
let mut active = model.into_active_model();
active.sort_order = Set(index as i32);
active.updated_at = Set(now.clone());
active.updated_at = Set(now);
active.update(conn).await?;
}
}