Files
axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
T
4e4c29175f Remove B type param (#1751)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
2023-04-21 17:45:31 +02:00

11 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() {}