mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-22 00:00:17 +02:00
Allow unreachable code in #[debug_handler] (#2014)
Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
40da647620
commit
68696b09b1
@@ -0,0 +1,8 @@
|
||||
#![deny(unreachable_code)]
|
||||
|
||||
use axum::extract::Path;
|
||||
|
||||
#[axum_macros::debug_handler]
|
||||
async fn handler(Path(_): Path<String>) {}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user