Fix clippy complaints

This commit is contained in:
Rob Wagner 2024-10-18 20:39:09 -04:00
parent 600fb3fc3c
commit 5bcbc9cb10
No known key found for this signature in database
GPG key ID: 53CCB4497B15CF61
2 changed files with 7 additions and 4 deletions

View file

@ -28,9 +28,12 @@ use crate::{HxRequest, HxTarget, HxTrigger, HxTriggerName};
const MIDDLEWARE_DOUBLE_USE: &str = const MIDDLEWARE_DOUBLE_USE: &str =
"Configuration error: `axum_httpx::vary_middleware` is used twice"; "Configuration error: `axum_httpx::vary_middleware` is used twice";
/// Addresses [htmx caching issue](https://htmx.org/docs/#caching) /// Automatically adds a `Vary` header when needed.
/// by automatically adding a corresponding `Vary` header when [`HxRequest`], ///
/// [`HxTarget`], [`HxTrigger`], [`HxTriggerName`] or their combination is used. /// 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)] #[derive(Clone)]
pub struct AutoVaryLayer; pub struct AutoVaryLayer;

View file

@ -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 where
F: Future<Output = Result<Response<B>, E>>, F: Future<Output = Result<Response<B>, E>>,
B: Default, B: Default,