We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
body_text()
Display
1 parent 0a67496 commit ac549f3Copy full SHA for ac549f3
axum-core/src/macros.rs
@@ -50,7 +50,7 @@ macro_rules! __define_rejection {
50
impl $name {
51
/// Get the response body text used for this rejection.
52
pub fn body_text(&self) -> String {
53
- $body.into()
+ self.to_string()
54
}
55
56
/// Get the status code used for this rejection.
@@ -107,7 +107,7 @@ macro_rules! __define_rejection {
107
108
109
110
- format!(concat!($body, ": {}"), self.0).into()
111
112
113
0 commit comments