mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-16 22:43:03 +01:00
axum-core/macros: Change $body
to require literal
token (#3117)
This commit is contained in:
parent
fd60c8471d
commit
287bd14711
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
) => {
|
||||
|
|
Loading…
Reference in a new issue