mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
#[must_use] all the things! (#1809)
This commit is contained in:
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
# Unreleased
|
||||
|
||||
- None.
|
||||
- **fixed:** Add `#[must_use]` attributes to types that do nothing unless used ([#1809])
|
||||
|
||||
[#1809]: https://github.com/tokio-rs/axum/pull/1809
|
||||
|
||||
# 0.3.2 (20. January, 2023)
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ use tower_layer::Layer;
|
||||
/// [`RequestExt::with_limited_body`]: crate::RequestExt::with_limited_body
|
||||
/// [`RequestExt::into_limited_body`]: crate::RequestExt::into_limited_body
|
||||
#[derive(Debug, Clone)]
|
||||
#[must_use]
|
||||
pub struct DefaultBodyLimit {
|
||||
kind: DefaultBodyLimitKind,
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ use std::fmt;
|
||||
/// }
|
||||
/// ```
|
||||
#[derive(Debug)]
|
||||
#[must_use]
|
||||
pub struct AppendHeaders<I>(pub I);
|
||||
|
||||
impl<I, K, V> IntoResponse for AppendHeaders<I>
|
||||
|
||||
Reference in New Issue
Block a user