mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-23 20:02:50 +01:00
Fix clippy complaints
This commit is contained in:
parent
600fb3fc3c
commit
5bcbc9cb10
2 changed files with 7 additions and 4 deletions
|
@ -28,9 +28,12 @@ use crate::{HxRequest, HxTarget, HxTrigger, HxTriggerName};
|
|||
const MIDDLEWARE_DOUBLE_USE: &str =
|
||||
"Configuration error: `axum_httpx::vary_middleware` is used twice";
|
||||
|
||||
/// Addresses [htmx caching issue](https://htmx.org/docs/#caching)
|
||||
/// by automatically adding a corresponding `Vary` header when [`HxRequest`],
|
||||
/// [`HxTarget`], [`HxTrigger`], [`HxTriggerName`] or their combination is used.
|
||||
/// Automatically adds a `Vary` header when needed.
|
||||
///
|
||||
/// Addresses [htmx caching issues](https://htmx.org/docs/#caching)
|
||||
/// by automatically adding a corresponding `Vary` header when
|
||||
/// [`HxRequest`], [`HxTarget`], [`HxTrigger`], [`HxTriggerName`]
|
||||
/// or their combination is used.
|
||||
#[derive(Clone)]
|
||||
pub struct AutoVaryLayer;
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ mod private {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, F, B, E> Future for ResponseFuture<'a, F>
|
||||
impl<F, B, E> Future for ResponseFuture<'_, F>
|
||||
where
|
||||
F: Future<Output = Result<Response<B>, E>>,
|
||||
B: Default,
|
||||
|
|
Loading…
Reference in a new issue