1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-31 03:20:20 +02:00

chore: address clippy lints

This commit is contained in:
Rob Ede
2025-08-26 07:05:54 +01:00
parent 31869dc51f
commit 72a8024179
4 changed files with 6 additions and 6 deletions

View File

@@ -51,8 +51,8 @@ These crates are provided by the community.
| [actix-web-validation] | ![crates.io](https://img.shields.io/crates/v/actix-web-validation?label=latest) [![dependency status](https://deps.rs/crate/actix-web-validation/latest/status.svg)](https://deps.rs/crate/actix-web-validation) | Request validation for Actix Web. |
| [actix-jwt-cookies] | ![crates.io](https://img.shields.io/crates/v/actix-jwt-cookies?label=latest) [![dependency status](https://deps.rs/repo/github/Necoo33/actix-jwt-cookies/status.svg)](https://deps.rs/repo/github/Necoo33/actix-jwt-cookies?path=%2F) | Store your data in encrypted cookies and get it elegantly. |
| [actix-ws-broadcaster] | ![crates.io](https://img.shields.io/crates/v/actix-ws-broadcaster?label=latest) [![dependency status](https://deps.rs/repo/github/Necoo33/actix-ws-broadcaster/status.svg?path=%2F)](https://deps.rs/repo/github/Necoo33/actix-ws-broadcaster?path=%2F) | A broadcaster library for actix-ws that includes grouping and conditional broadcasting. |
| [actix-web-metrics] | ![crates.io](https://img.shields.io/crates/v/actix-web-metrics?label=latest) [![dependency status](https://deps.rs/crate/actix-web-metrics/latest/status.svg)](https://deps.rs/crate/actix-web-metrics) | Metrics.rs integration for actix-web
| [actix-htmx] | ![crates.io](https://img.shields.io/crates/v/actix-htmx?label=latest) [![dependency status](https://deps.rs/crate/actix-htmx/latest/status.svg)](https://deps.rs/crate/actix-htmx) | Htmx integration for Actix Web.
| [actix-web-metrics] | ![crates.io](https://img.shields.io/crates/v/actix-web-metrics?label=latest) [![dependency status](https://deps.rs/crate/actix-web-metrics/latest/status.svg)](https://deps.rs/crate/actix-web-metrics) | Metrics.rs integration for Actix Web. |
| [actix-htmx] | ![crates.io](https://img.shields.io/crates/v/actix-htmx?label=latest) [![dependency status](https://deps.rs/crate/actix-htmx/latest/status.svg)](https://deps.rs/crate/actix-htmx) | Htmx integration for Actix Web. |
To add a crate to this list, submit a pull request.

View File

@@ -87,8 +87,8 @@ where
HttpResponse::new(StatusCode::TOO_MANY_REQUESTS).map_into_right_body(),
))
}
LimitationError::Client(e) => {
log::error!("Client request failed, redis error: {}", e);
LimitationError::Client(err) => {
log::error!("Client request failed, redis error: {err}");
Ok(req.into_response(
HttpResponse::new(StatusCode::INTERNAL_SERVER_ERROR)

View File

@@ -143,8 +143,8 @@ where
ProtoBufMessage::new(req, payload)
.limit(limit)
.map(move |res| match res {
Err(e) => Err(e.into()),
Ok(item) => Ok(ProtoBuf(item)),
Err(err) => Err(err.into()),
})
.boxed_local()
}

View File

@@ -116,7 +116,7 @@ impl From<Error> for io::Error {
Error::IoError(io_error) => io_error,
#[cfg(feature = "openssl")]
Error::OpenSSLError(ossl_error) => io::Error::new(io::ErrorKind::Other, ossl_error),
Error::OpenSSLError(ossl_error) => io::Error::other(ossl_error),
Error::ParseBoolError(_) => {
io::Error::new(io::ErrorKind::InvalidInput, err.to_string())