resolve unused import warnings in release builds
This commit is contained in:
parent
f2dd3d8318
commit
40d2902eae
21 changed files with 41 additions and 42 deletions
|
|
@ -17,7 +17,7 @@ use sqlx::{postgres::types::Oid, query};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
presentation_form::PresentationForm,
|
presentation_form::PresentationForm,
|
||||||
|
|
@ -73,7 +73,7 @@ impl From<FormBody> for PresentationForm {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ use strum::IntoEnumIterator as _;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
field_info::FormFieldInfo,
|
field_info::FormFieldInfo,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
|
|
@ -41,7 +41,7 @@ pub(super) struct PathParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HTTP GET handler for the top-level portal form builder page.
|
/// HTTP GET handler for the top-level portal form builder page.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ use sqlx::{postgres::types::Oid, query};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::{AppError, forbidden},
|
errors::{AppError, forbidden},
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -37,7 +37,7 @@ pub(super) struct PathParams {
|
||||||
/// to insert multiple rows at once. If any key is repeated, the others should
|
/// to insert multiple rows at once. If any key is repeated, the others should
|
||||||
/// be repeated the same number of times. Form values are expected to be JSON-
|
/// be repeated the same number of times. Form values are expected to be JSON-
|
||||||
/// serialized representations of the `[Datum]` type.
|
/// serialized representations of the `[Datum]` type.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut workspace_pooler): State<WorkspacePooler>,
|
State(mut workspace_pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
settings::Settings,
|
settings::Settings,
|
||||||
|
|
@ -31,7 +31,7 @@ pub(super) struct PathParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HTTP GET handler for portal settings, including renaming and deletion.
|
/// HTTP GET handler for portal settings, including renaming and deletion.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::{AppError, bad_request},
|
errors::{AppError, bad_request},
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
|
|
@ -41,7 +41,7 @@ pub(super) struct FormBody {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -40,7 +40,7 @@ pub(super) struct FormBody {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::Navigator,
|
navigator::Navigator,
|
||||||
settings::Settings,
|
settings::Settings,
|
||||||
|
|
@ -28,7 +28,7 @@ pub(super) struct PathParams {
|
||||||
|
|
||||||
/// HTTP GET handler for table settings, including renaming, access control,
|
/// HTTP GET handler for table settings, including renaming, access control,
|
||||||
/// and deletion.
|
/// and deletion.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -28,7 +28,7 @@ pub(super) struct FormBody {
|
||||||
|
|
||||||
/// HTTP POST handler for inviting another Phonograph user to collaborate on a
|
/// HTTP POST handler for inviting another Phonograph user to collaborate on a
|
||||||
/// relation, by email address.
|
/// relation, by email address.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
|
|
@ -66,7 +66,7 @@ impl From<FormBody> for PresentationForm {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
|
|
@ -34,7 +34,7 @@ pub(super) struct FormBody {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
CurrentUser(_user): CurrentUser,
|
CurrentUser(_user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::{AppError, bad_request},
|
errors::{AppError, bad_request},
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -36,7 +36,7 @@ pub(super) struct FormBody {
|
||||||
///
|
///
|
||||||
/// Upon success, the client is redirected back to the portal's form editor
|
/// Upon success, the client is redirected back to the portal's form editor
|
||||||
/// page.
|
/// page.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
CurrentUser(_user): CurrentUser,
|
CurrentUser(_user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
|
|
@ -35,7 +35,7 @@ pub(super) struct FormBody {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HTTP POST handler for updating a portal's name.
|
/// HTTP POST handler for updating a portal's name.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ use sqlx::postgres::types::Oid;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::{AppError, bad_request},
|
errors::{AppError, bad_request},
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -39,7 +39,7 @@ pub(super) struct PathParams {
|
||||||
///
|
///
|
||||||
/// Upon success, the client is redirected back to the portal's form editor
|
/// Upon success, the client is redirected back to the portal's form editor
|
||||||
/// page.
|
/// page.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut workspace_pooler): State<WorkspacePooler>,
|
State(mut workspace_pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::App,
|
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
|
|
@ -39,7 +38,7 @@ pub(super) struct FormBody {
|
||||||
///
|
///
|
||||||
/// Currently, names must begin with a letter and may only contain lowercase
|
/// Currently, names must begin with a letter and may only contain lowercase
|
||||||
/// alphanumeric characters and underscores.
|
/// alphanumeric characters and underscores.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ use sqlx::{Acquire as _, postgres::types::Oid, query};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::{AppError, forbidden},
|
errors::{AppError, forbidden},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
workspace_pooler::{RoleAssignment, WorkspacePooler},
|
workspace_pooler::{RoleAssignment, WorkspacePooler},
|
||||||
|
|
@ -47,7 +47,7 @@ pub(super) struct CellInfo {
|
||||||
///
|
///
|
||||||
/// This handler expects 3 path parameters with the structure described by
|
/// This handler expects 3 path parameters with the structure described by
|
||||||
/// [`PathParams`].
|
/// [`PathParams`].
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut workspace_pooler): State<WorkspacePooler>,
|
State(mut workspace_pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ use sqlx::query;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
user::CurrentUser,
|
user::CurrentUser,
|
||||||
|
|
@ -33,7 +33,7 @@ pub(super) struct PathParams {
|
||||||
|
|
||||||
/// HTTP POST handler for generating a new "service credential" role for a user
|
/// HTTP POST handler for generating a new "service credential" role for a user
|
||||||
/// and workspace.
|
/// and workspace.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use serde::Deserialize;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::Navigator,
|
navigator::Navigator,
|
||||||
settings::Settings,
|
settings::Settings,
|
||||||
|
|
@ -29,7 +29,7 @@ pub(super) struct PathParams {
|
||||||
/// HTTP GET handler for a top-level workspace navigation page. At the moment,
|
/// HTTP GET handler for a top-level workspace navigation page. At the moment,
|
||||||
/// this is pretty spare---essentially the workspace navigation sidebar blown
|
/// this is pretty spare---essentially the workspace navigation sidebar blown
|
||||||
/// up to the size of a full page.
|
/// up to the size of a full page.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use url::Url;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::Navigator,
|
navigator::Navigator,
|
||||||
roles::RoleDisplay,
|
roles::RoleDisplay,
|
||||||
|
|
@ -35,7 +35,7 @@ pub(super) struct PathParams {
|
||||||
|
|
||||||
/// HTTP GET handler for the page at which a user manages their service
|
/// HTTP GET handler for the page at which a user manages their service
|
||||||
/// credentials for a workspace.
|
/// credentials for a workspace.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use serde::Deserialize;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::Navigator,
|
navigator::Navigator,
|
||||||
settings::Settings,
|
settings::Settings,
|
||||||
|
|
@ -28,7 +28,7 @@ pub(super) struct PathParams {
|
||||||
|
|
||||||
/// HTTP GET handler for workspace settings, including renaming, access control,
|
/// HTTP GET handler for workspace settings, including renaming, access control,
|
||||||
/// and deletion.
|
/// and deletion.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn get(
|
pub(super) async fn get(
|
||||||
State(settings): State<Settings>,
|
State(settings): State<Settings>,
|
||||||
CurrentUser(user): CurrentUser,
|
CurrentUser(user): CurrentUser,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ use uuid::Uuid;
|
||||||
use validator::Validate;
|
use validator::Validate;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
extractors::ValidatedForm,
|
extractors::ValidatedForm,
|
||||||
navigator::{Navigator, NavigatorPage as _},
|
navigator::{Navigator, NavigatorPage as _},
|
||||||
|
|
@ -29,7 +29,7 @@ pub(super) struct FormBody {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HTTP POST handler for updating a workspace's name.
|
/// HTTP POST handler for updating a workspace's name.
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use sqlx::query;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::{App, AppDbConn},
|
app::AppDbConn,
|
||||||
errors::AppError,
|
errors::AppError,
|
||||||
navigator::{Navigator, NavigatorPage},
|
navigator::{Navigator, NavigatorPage},
|
||||||
roles::{get_reader_role, get_writer_role},
|
roles::{get_reader_role, get_writer_role},
|
||||||
|
|
@ -33,7 +33,7 @@ pub(super) struct PathParams {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HTTP POST handler for assigning
|
/// HTTP POST handler for assigning
|
||||||
#[debug_handler(state = App)]
|
#[debug_handler(state = crate::app::App)]
|
||||||
pub(super) async fn post(
|
pub(super) async fn post(
|
||||||
State(mut pooler): State<WorkspacePooler>,
|
State(mut pooler): State<WorkspacePooler>,
|
||||||
AppDbConn(mut app_db): AppDbConn,
|
AppDbConn(mut app_db): AppDbConn,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue