mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-18 00:00:15 +02:00
axum-core/macros: Change $body to require literal token (#3117)
This commit is contained in:
@@ -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);
|
||||
) => {
|
||||
|
||||
Reference in New Issue
Block a user