diff options
| author | Conrad Ludgate <conradludgate@gmail.com> | 2024-01-28 13:33:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 13:33:45 +0000 |
| commit | bdcb143996567c9540fb411bc53448355665747b (patch) | |
| tree | c8152a7cfdf0f2d45c5f7e15a17b577206698340 /atuin-server/src/handlers/history.rs | |
| parent | chore: use resolver 2, update editions + cargo (#1635) (diff) | |
| download | atuin-bdcb143996567c9540fb411bc53448355665747b.zip | |
chore(deps): update axum (#1637)
Diffstat (limited to 'atuin-server/src/handlers/history.rs')
| -rw-r--r-- | atuin-server/src/handlers/history.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/atuin-server/src/handlers/history.rs b/atuin-server/src/handlers/history.rs index cdee3988..05bbe740 100644 --- a/atuin-server/src/handlers/history.rs +++ b/atuin-server/src/handlers/history.rs @@ -2,10 +2,9 @@ use std::{collections::HashMap, convert::TryFrom}; use axum::{ extract::{Path, Query, State}, - http::HeaderMap, + http::{HeaderMap, StatusCode}, Json, }; -use http::StatusCode; use metrics::counter; use time::{Month, UtcOffset}; use tracing::{debug, error, instrument}; @@ -215,7 +214,7 @@ pub async fn calendar<DB: Database>( error: ErrorResponse { reason: e.to_string().into(), }, - status: http::StatusCode::BAD_REQUEST, + status: StatusCode::BAD_REQUEST, })?; let period = match focus { |
