diff --git a/Cargo.lock b/Cargo.lock index 9155ad7..a6eb568 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -645,7 +645,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8" dependencies = [ "axum-core", - "axum-macros", "bytes", "form_urlencoded", "futures-util", @@ -693,17 +692,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "axum-macros" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "backtrace" version = "0.3.74" diff --git a/Cargo.toml b/Cargo.toml index ffd9b1b..1103bd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ url = "2" anyhow = "1" serde_json = "1" rand = "0.8" -axum = { version = "0.8", features = ["form", "macros"] } +axum = { version = "0.8", features = ["form"] } tera = "1" lazy_static = "1" actix-files = "0.6" diff --git a/src/main.rs b/src/main.rs index 87ed5af..7ae00d7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -283,7 +283,6 @@ fn approx_score(score: f32) -> ApproxScore { } } -#[axum::debug_handler] async fn get_index( State(data): State>, Query(q): Query,