mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Add more must_use attributes (#2846)
… so people get a warning when they accidentally add a semicolon after the response expression in a handler function. Also update changelogs of axum-core, axum-extra.
This commit is contained in:
@@ -111,6 +111,7 @@ use std::{
|
||||
/// ```
|
||||
pub trait IntoResponse {
|
||||
/// Create a response.
|
||||
#[must_use]
|
||||
fn into_response(self) -> Response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user