aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-server/src/handlers/history.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2025-03-19 12:44:20 +0000
committerGitHub <noreply@github.com>2025-03-19 12:44:20 +0000
commit14ec768b4520d4fc34dbf24e663ea7db940c18b7 (patch)
treea37db707ab8676cad5b3e6ca47af3f2997958906 /crates/atuin-server/src/handlers/history.rs
parentfeat: Use readline binding for ctrl-a when it is not the prefix (#2626) (diff)
downloadatuin-14ec768b4520d4fc34dbf24e663ea7db940c18b7.zip
chore: migrate to rust 2024 (#2635)
* chore: upgrade to 2024 edition * ugh unsafe * format * nixxxxxxxxxxx why
Diffstat (limited to 'crates/atuin-server/src/handlers/history.rs')
-rw-r--r--crates/atuin-server/src/handlers/history.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/atuin-server/src/handlers/history.rs b/crates/atuin-server/src/handlers/history.rs
index 05bbe740..5547a180 100644
--- a/crates/atuin-server/src/handlers/history.rs
+++ b/crates/atuin-server/src/handlers/history.rs
@@ -1,9 +1,9 @@
use std::{collections::HashMap, convert::TryFrom};
use axum::{
+ Json,
extract::{Path, Query, State},
http::{HeaderMap, StatusCode},
- Json,
};
use metrics::counter;
use time::{Month, UtcOffset};
@@ -15,9 +15,9 @@ use crate::{
utils::client_version_min,
};
use atuin_server_database::{
+ Database,
calendar::{TimePeriod, TimePeriodInfo},
models::NewHistory,
- Database,
};
use atuin_common::api::*;
@@ -223,7 +223,7 @@ pub async fn calendar<DB: Database>(
"day" => TimePeriod::Day { year, month },
_ => {
return Err(ErrorResponse::reply("invalid focus: use year/month/day")
- .with_status(StatusCode::BAD_REQUEST))
+ .with_status(StatusCode::BAD_REQUEST));
}
};