axum-core/macros: Change $body to require literal token (#3117)

This commit is contained in:
Tobias Bieniek 2024-12-27 11:39:08 +01:00 committed by GitHub
parent fd60c8471d
commit 287bd14711
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ macro_rules! __log_rejection {
macro_rules! __define_rejection {
(
#[status = $status:ident]
#[body = $body:expr]
#[body = $body:literal]
$(#[$m:meta])*
pub struct $name:ident;
) => {
@ -89,7 +89,7 @@ macro_rules! __define_rejection {
(
#[status = $status:ident]
#[body = $body:expr]
#[body = $body:literal]
$(#[$m:meta])*
pub struct $name:ident (Error);
) => {