mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +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:
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning].
|
||||
|
||||
# Unreleased
|
||||
|
||||
- None.
|
||||
- **added:** The `response::Attachment` type ([#2789])
|
||||
|
||||
[#2789]: https://github.com/tokio-rs/axum/pull/2789
|
||||
|
||||
# 0.9.3 (24. March, 2024)
|
||||
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user