mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
bump msrv to 1.51
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
|
Reference in New Issue
Block a user