mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +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 {
|
macro_rules! __define_rejection {
|
||||||
(
|
(
|
||||||
#[status = $status:ident]
|
#[status = $status:ident]
|
||||||
#[body = $body:expr]
|
#[body = $body:literal]
|
||||||
$(#[$m:meta])*
|
$(#[$m:meta])*
|
||||||
pub struct $name:ident;
|
pub struct $name:ident;
|
||||||
) => {
|
) => {
|
||||||
@@ -89,7 +89,7 @@ macro_rules! __define_rejection {
|
|||||||
|
|
||||||
(
|
(
|
||||||
#[status = $status:ident]
|
#[status = $status:ident]
|
||||||
#[body = $body:expr]
|
#[body = $body:literal]
|
||||||
$(#[$m:meta])*
|
$(#[$m:meta])*
|
||||||
pub struct $name:ident (Error);
|
pub struct $name:ident (Error);
|
||||||
) => {
|
) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user