Skip to content

Commit

Permalink
axum-core/macros: Change $body to require literal token (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 authored Dec 27, 2024
1 parent fd60c84 commit 287bd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions axum-core/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
) => {
Expand Down Expand Up @@ -89,7 +89,7 @@ macro_rules! __define_rejection {

(
#[status = $status:ident]
#[body = $body:expr]
#[body = $body:literal]
$(#[$m:meta])*
pub struct $name:ident (Error);
) => {
Expand Down

0 comments on commit 287bd14

Please sign in to comment.