1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 23:51:06 +01:00

bump msrv to 1.51

This commit is contained in:
Rob Ede 2021-08-30 23:10:36 +01:00
parent 44c7b07ce2
commit c6f579790f
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
20 changed files with 21 additions and 15 deletions

View File

@ -14,7 +14,7 @@ jobs:
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
version:
- 1.46.0 # MSRV
- 1.51.0 # MSRV
- stable
- nightly
@ -108,7 +108,7 @@ jobs:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
version:
- 1.46.0 # MSRV
- 1.51.0 # MSRV
- stable
- nightly

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2021-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.6.0-beta.2 - 2021-06-27

View File

@ -11,4 +11,4 @@
- [API Documentation](https://docs.rs/actix-cors)
- [Example Project](https://github.com/actix/examples/tree/master/security/web-cors)
- Minimum Supported Rust Version (MSRV): 1.46.0
- Minimum Supported Rust Version (MSRV): 1.51

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2020-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.4.0-beta.2 - 2020-06-27

View File

@ -10,4 +10,4 @@
## Documentation & community resources
* [API Documentation](https://docs.rs/actix-identity)
* Minimum Supported Rust Version (MSRV): 1.46
* Minimum Supported Rust Version (MSRV): 1.51

View File

@ -109,10 +109,10 @@ impl CookieIdentityInner {
};
if add_cookie {
jar.private_mut(&key).add(cookie);
jar.private_mut(key).add(cookie);
} else {
jar.add_original(cookie.clone());
jar.private_mut(&key).remove(cookie);
jar.private_mut(key).remove(cookie);
}
for cookie in jar.delta() {

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2020-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.7.0-beta.1 - 2020-06-27

View File

@ -11,7 +11,7 @@
- [API Documentation](https://docs.rs/actix-protobuf)
- [Example Project](https://github.com/actix/examples/tree/master/other/protobuf)
- Minimum Supported Rust Version (MSRV): 1.46.0
- Minimum Supported Rust Version (MSRV): 1.51
## Example

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2020-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.10.0-beta.2 - 2020-06-27

View File

@ -11,7 +11,7 @@
- [API Documentation](https://docs.rs/actix-redis)
- [Example Project](https://github.com/actix/examples/tree/HEAD/session/redis-session)
- Minimum Supported Rust Version (MSRV): 1.46
- Minimum Supported Rust Version (MSRV): 1.51
## Redis Session Backend

View File

@ -241,7 +241,7 @@ impl Inner {
if let Some(cookie) = jar.signed(&self.key).get(&self.name) {
let value = cookie.value().to_owned();
let cache_key = (self.cache_keygen)(&cookie.value());
let cache_key = (self.cache_keygen)(cookie.value());
(value, cache_key)
} else {
return Ok(None);

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2020-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.5.0-beta.2 - 2020-06-27

View File

@ -12,4 +12,4 @@
- [API Documentation](https://docs.rs/actix-session)
- [Example Projects](https://github.com/actix/examples/tree/HEAD/session)
- Minimum Supported Rust Version (MSRV): 1.46
- Minimum Supported Rust Version (MSRV): 1.51

View File

@ -286,7 +286,7 @@ impl Session {
fn get_session(extensions: &mut Extensions) -> Session {
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
return Session(Rc::clone(&s_impl));
return Session(Rc::clone(s_impl));
}
let inner = Rc::new(RefCell::new(SessionInner::default()));
extensions.insert(inner.clone());

View File

@ -1,6 +1,7 @@
# Changes
## Unreleased - 2020-xx-xx
* Minimum supported Rust version (MSRV) is now 1.51.
## 0.6.0-beta.2 - 2020-06-27

View File

@ -10,7 +10,7 @@
## Documentation & Resources
- [API Documentation](*https://docs.rs/actix-web-httpauth/)
- Minimum Supported Rust Version (MSRV): 1.46
- Minimum Supported Rust Version (MSRV): 1.51
## Features
- Typed [Authorization] and [WWW-Authenticate] headers

View File

@ -94,7 +94,7 @@ pub struct BasicAuth(Basic);
impl BasicAuth {
/// Returns client's user-ID.
pub fn user_id(&self) -> &Cow<'static, str> {
&self.0.user_id()
self.0.user_id()
}
/// Returns client's password.

View File

@ -15,8 +15,8 @@
//! [Extractors]: https://actix.rs/docs/extractors/
//! [Middleware]: ./middleware
#![forbid(unsafe_code)]
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
#![deny(clippy::all)]
pub mod extractors;
pub mod headers;

1
clippy.toml Normal file
View File

@ -0,0 +1 @@
msrv = "1.51"

View File

@ -1,2 +1 @@
max_width = 89
reorder_imports = true