mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
#[must_use] all the things! (#1809)
This commit is contained in:
@@ -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