Files
axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
T
a4b7d3843c Remove B type param (#1751)
Co-authored-by: Jonas Platte <[email protected]>
Co-authored-by: Michael Scofield <[email protected]>
2023-03-23 20:22:35 +01: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() {}