compilation nits

This commit is contained in:
Diego Imbert
2026-04-01 14:32:53 +02:00
parent 729cde1190
commit 0bb398afca
2 changed files with 2 additions and 6 deletions
@@ -50,7 +50,7 @@ use windmill_common::{
oauth2::WORKSPACE_SLACK_BOT_TOKEN_PATH,
utils::{paginate, rd_string, require_admin, Pagination},
};
use windmill_common::{get_database_url, PgDatabase};
use windmill_common::PgDatabase;
use windmill_dep_map::scoped_dependency_map::{
DependencyDependent, DependencyMap, ScopedDependencyMap,
};
@@ -662,15 +662,11 @@ pub(crate) struct DeleteWorkspaceQuery {
pub(crate) only_delete_forks: Option<bool>,
}
#[derive(Deserialize, Default)]
pub(crate) struct DeleteWorkspaceBody {}
pub(crate) async fn delete_workspace(
Extension(db): Extension<DB>,
Path(w_id): Path<String>,
authed: ApiAuthed,
Query(dwq): Query<DeleteWorkspaceQuery>,
body: Option<Json<DeleteWorkspaceBody>>,
) -> Result<String> {
let w_id = match w_id.as_str() {
"starter" => Err(Error::BadRequest(
@@ -853,7 +849,7 @@ pub(crate) async fn delete_workspace(
}
#[derive(Deserialize)]
struct DropForkedDatatableDatabasesRequest {
pub struct DropForkedDatatableDatabasesRequest {
datatable_names: Vec<String>,
}