From 5d929041cbe9af2118af95b6971bd6bca9528ece Mon Sep 17 00:00:00 2001 From: J <124119483+escwxyz@users.noreply.github.com> Date: Sun, 9 Apr 2023 17:55:17 +0200 Subject: [PATCH] Remove http crate from axum example (#1789) --- lib/examples/axum/Cargo.toml | 1 - lib/examples/axum/src/error.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/examples/axum/Cargo.toml b/lib/examples/axum/Cargo.toml index 711ff362..123ac0b6 100644 --- a/lib/examples/axum/Cargo.toml +++ b/lib/examples/axum/Cargo.toml @@ -6,7 +6,6 @@ publish = false [dependencies] axum = "0.6.12" -http = "0.2.9" serde = { version = "1.0.159", features = ["derive"] } surrealdb = { path = "../.." } thiserror = "1.0.40" diff --git a/lib/examples/axum/src/error.rs b/lib/examples/axum/src/error.rs index ccefe564..a9a437ab 100644 --- a/lib/examples/axum/src/error.rs +++ b/lib/examples/axum/src/error.rs @@ -1,7 +1,7 @@ +use axum::http::StatusCode; use axum::response::IntoResponse; use axum::response::Response; use axum::Json; -use http::StatusCode; use thiserror::Error; #[derive(Error, Debug)]