From 72a802417924c401af74b92de0f4a51f5744cb59 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 26 Aug 2025 07:05:54 +0100 Subject: [PATCH] chore: address clippy lints --- README.md | 4 ++-- actix-limitation/src/middleware.rs | 4 ++-- actix-protobuf/src/lib.rs | 2 +- actix-settings/src/error.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8245766df..a6e4104f9 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/actix-limitation/src/middleware.rs b/actix-limitation/src/middleware.rs index 7696e29ac..6cdb2edf9 100644 --- a/actix-limitation/src/middleware.rs +++ b/actix-limitation/src/middleware.rs @@ -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) diff --git a/actix-protobuf/src/lib.rs b/actix-protobuf/src/lib.rs index 6ada5aa4a..5fe605e01 100644 --- a/actix-protobuf/src/lib.rs +++ b/actix-protobuf/src/lib.rs @@ -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() } diff --git a/actix-settings/src/error.rs b/actix-settings/src/error.rs index b4c73726d..c8bf889b2 100644 --- a/actix-settings/src/error.rs +++ b/actix-settings/src/error.rs @@ -116,7 +116,7 @@ impl From 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())