axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
David Pedersen 4e4c29175f Remove B type param (#1751)
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
2023-04-21 17:45:31 +02:00

10 lines
230 B
Rust

use axum_macros::debug_handler;
use axum::{extract::State, http::Request};
#[debug_handler(state = AppState)]
async fn handler(_: State<AppState>, _: Request<axum::body::Body>) {}
#[derive(Clone)]
struct AppState;
fn main() {}