Skip to content

Commit

Permalink
0.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Jan 3, 2025
1 parent 8e863c9 commit bc4abd3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.4.11
## Changes
1. Make clippy happy.
2. Bump `thiserror` to 2.0.

# 0.4.10
## Changes
1. `Locale::new` support `Into<String>` instead of `String`.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# actix-cloud

[![crates.io](https://img.shields.io/crates/v/actix-cloud?label=crates.io&style=flat-square)](https://crates.io/crates/actix-cloud)
[![docs.rs](https://img.shields.io/docsrs/actix-cloud?style=flat-square)](https://docs.rs/actix-cloud/latest)
![license](https://img.shields.io/github/license/mxwxz/actix-cloud?style=flat-square)

Actix Cloud is an all-in-one web framework based on [Actix Web](https://crates.io/crates/actix-web).

## Features
Expand Down
6 changes: 3 additions & 3 deletions actix-cloud/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-cloud"
version = "0.4.10"
version = "0.4.11"
edition = "2021"
authors = ["MXWXZ <matrixwxz@gmail.com>"]
description = "Actix Cloud is an all-in-one web framework based on Actix Web."
Expand Down Expand Up @@ -121,7 +121,7 @@ rustls-pemfile = { version = "2.2", optional = true }
actix-cloud-codegen = { version = "0.2", path = "../actix-cloud-codegen", optional = true }

# config
config = { version = "0.14", optional = true }
config = { version = "0.15", optional = true }

# logger
tracing = { version = "0.1", optional = true }
Expand Down Expand Up @@ -177,7 +177,7 @@ qstring = { version = "0.7", optional = true }
enum-as-inner = { version = "0.6", optional = true }

# response-build
thiserror = { version = "1.0", optional = true }
thiserror = { version = "2.0", optional = true }

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
Expand Down
4 changes: 2 additions & 2 deletions actix-cloud/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ where
{
use futures::FutureExt;
use std::str::FromStr;
return Box::pin(self.service.call(req).map(move |x| {
Box::pin(self.service.call(req).map(move |x| {
if let Some(header) = header.as_ref() {
x.map(|mut x| {
x.headers_mut().insert(
Expand All @@ -167,7 +167,7 @@ where
} else {
x
}
}));
}))
}
}
}
2 changes: 1 addition & 1 deletion actix-cloud/src/session/session_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl SessionExt for ServiceResponse {
}
}

impl<'a> SessionExt for GuardContext<'a> {
impl SessionExt for GuardContext<'_> {
fn get_session(&self) -> Session {
Session::get_session(&mut self.req_data_mut())
}
Expand Down

0 comments on commit bc4abd3

Please sign in to comment.