Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed Jul 4, 2024
1 parent 636cf95 commit 16b6333
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/http/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use axum::{Json, Router};
#[cfg(feature = "open-api")]
use schemars::JsonSchema;
use serde_derive::{Deserialize, Serialize};
use std::collections::BTreeMap;
use std::time::Duration;
use tracing::instrument;

Expand Down Expand Up @@ -120,7 +119,10 @@ fn health_get_docs(op: TransformOperation) -> TransformOperation {
CheckResponse::builder()
.status(Status::Ok)
.latency(Duration::from_secs(1))
.custom(BTreeMap::from([("foo", 1234), ("bar", 5000)]))
.custom(std::collections::BTreeMap::from([
("foo", 1234),
("bar", 5000),
]))
.build(),
),
(
Expand Down

0 comments on commit 16b6333

Please sign in to comment.