Skip to content

Commit 287bd14

Browse files
authored
axum-core/macros: Change $body to require literal token (#3117)
1 parent fd60c84 commit 287bd14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axum-core/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ macro_rules! __log_rejection {
3838
macro_rules! __define_rejection {
3939
(
4040
#[status = $status:ident]
41-
#[body = $body:expr]
41+
#[body = $body:literal]
4242
$(#[$m:meta])*
4343
pub struct $name:ident;
4444
) => {
@@ -89,7 +89,7 @@ macro_rules! __define_rejection {
8989

9090
(
9191
#[status = $status:ident]
92-
#[body = $body:expr]
92+
#[body = $body:literal]
9393
$(#[$m:meta])*
9494
pub struct $name:ident (Error);
9595
) => {

0 commit comments

Comments
 (0)