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:
Jonas Platte
2024-09-11 19:17:25 +00:00
committed by GitHub
parent fdf83d0b73
commit b214e39581
6 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -33,8 +33,8 @@ use tracing::error;
/// # Note
///
/// If you use axum with hyper, hyper will set the `Content-Length` if it is known.
///
#[derive(Debug)]
#[must_use]
pub struct Attachment<T> {
inner: T,
filename: Option<HeaderValue>,