diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 18:02:27 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-20 18:02:27 +0200 |
| commit | 6b4ed51b4b4f08fb8c60ed79fa7797b148a8a335 (patch) | |
| tree | 280481b380edfcd2a76d646e884d71f103a930a6 /crates/server/src/handlers/v0 | |
| parent | chore(atuin): Remove unused crate dependencies (diff) | |
| download | atuin-6b4ed51b4b4f08fb8c60ed79fa7797b148a8a335.zip | |
chore: Remove some warnings (cargo fix)
Diffstat (limited to '')
| -rw-r--r-- | crates/server/src/handlers/v0/mod.rs | 2 | ||||
| -rw-r--r-- | crates/server/src/handlers/v0/record.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crates/server/src/handlers/v0/mod.rs b/crates/server/src/handlers/v0/mod.rs index 2066636c..78fb47b8 100644 --- a/crates/server/src/handlers/v0/mod.rs +++ b/crates/server/src/handlers/v0/mod.rs @@ -1 +1 @@ -pub mod record; +pub(crate) mod record; diff --git a/crates/server/src/handlers/v0/record.rs b/crates/server/src/handlers/v0/record.rs index f7758c1a..61fa2946 100644 --- a/crates/server/src/handlers/v0/record.rs +++ b/crates/server/src/handlers/v0/record.rs @@ -11,7 +11,7 @@ use crate::{ use turtle_common::record::{EncryptedData, HostId, Record, RecordIdx, RecordStatus}; #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub async fn post( +pub(crate) async fn post( UserAuth(user): UserAuth, state: State<AppState>, Json(records): Json<Vec<Record<EncryptedData>>>, @@ -50,7 +50,7 @@ pub async fn post( } #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub async fn index( +pub(crate) async fn index( UserAuth(user): UserAuth, state: State<AppState>, ) -> Result<Json<RecordStatus>, ErrorResponseStatus<'static>> { @@ -75,7 +75,7 @@ pub async fn index( } #[derive(Deserialize)] -pub struct NextParams { +pub(crate) struct NextParams { host: HostId, tag: String, start: Option<RecordIdx>, @@ -83,7 +83,7 @@ pub struct NextParams { } #[instrument(skip_all, fields(user.id = user.id.to_string()))] -pub async fn next( +pub(crate) async fn next( params: Query<NextParams>, UserAuth(user): UserAuth, state: State<AppState>, |
