aboutsummaryrefslogtreecommitdiffstats
path: root/crates/server/src/handlers/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 18:02:27 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-20 18:02:27 +0200
commit6b4ed51b4b4f08fb8c60ed79fa7797b148a8a335 (patch)
tree280481b380edfcd2a76d646e884d71f103a930a6 /crates/server/src/handlers/mod.rs
parentchore(atuin): Remove unused crate dependencies (diff)
downloadatuin-6b4ed51b4b4f08fb8c60ed79fa7797b148a8a335.zip
chore: Remove some warnings (cargo fix)
Diffstat (limited to '')
-rw-r--r--crates/server/src/handlers/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/server/src/handlers/mod.rs b/crates/server/src/handlers/mod.rs
index e24bad14..1ac5a0c4 100644
--- a/crates/server/src/handlers/mod.rs
+++ b/crates/server/src/handlers/mod.rs
@@ -3,11 +3,11 @@ use axum::{Json, extract::State, http, response::IntoResponse};
use crate::router::AppState;
-pub mod v0;
+pub(crate) mod v0;
const VERSION: &str = env!("CARGO_PKG_VERSION");
-pub async fn index(state: State<AppState>) -> Json<IndexResponse> {
+pub(crate) async fn index(state: State<AppState>) -> Json<IndexResponse> {
let homage = r#""Through the fathomless deeps of space swims the star turtle Great A'Tuin, bearing on its back the four giant elephants who carry on their shoulders the mass of the Discworld." -- Sir Terry Pratchett"#;
let version = state
@@ -28,12 +28,12 @@ impl IntoResponse for ErrorResponseStatus<'_> {
}
}
-pub struct ErrorResponseStatus<'a> {
+pub(crate) struct ErrorResponseStatus<'a> {
pub error: ErrorResponse<'a>,
pub status: http::StatusCode,
}
-pub trait RespExt<'a> {
+pub(crate) trait RespExt<'a> {
fn with_status(self, status: http::StatusCode) -> ErrorResponseStatus<'a>;
fn reply(reason: &'a str) -> Self;
}