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:
@@ -51,8 +51,8 @@ These crates are provided by the community.
|
||||
| [actix-web-validation] |  [](https://deps.rs/crate/actix-web-validation) | Request validation for Actix Web. |
|
||||
| [actix-jwt-cookies] |  [](https://deps.rs/repo/github/Necoo33/actix-jwt-cookies?path=%2F) | Store your data in encrypted cookies and get it elegantly. |
|
||||
| [actix-ws-broadcaster] |  [](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] |  [](https://deps.rs/crate/actix-web-metrics) | Metrics.rs integration for actix-web
|
||||
| [actix-htmx] |  [](https://deps.rs/crate/actix-htmx) | Htmx integration for Actix Web.
|
||||
| [actix-web-metrics] |  [](https://deps.rs/crate/actix-web-metrics) | Metrics.rs integration for Actix Web. |
|
||||
| [actix-htmx] |  [](https://deps.rs/crate/actix-htmx) | Htmx integration for Actix Web. |
|
||||
|
||||
To add a crate to this list, submit a pull request.
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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()
|
||||
}
|
||||
|
@@ -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())
|
||||
|
Reference in New Issue
Block a user