style(api): import reindex into scope rather than crate::-qualify

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-02 23:29:50 +02:00
parent d15afda9b2
commit 4921c73fa7
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
use tower_sessions::Session;
use utoipa::ToSchema;
use crate::AppState;
use crate::{AppState, reindex};
/// Credentials for password login.
#[derive(Deserialize, ToSchema)]
@@ -160,7 +160,7 @@ pub(crate) async fn set_visibility(
.await
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
crate::reindex(&state, object_id).await;
reindex(&state, object_id).await;
Ok(StatusCode::NO_CONTENT)
}