We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67e4b0 commit f474284Copy full SHA for f474284
actix-session/src/session.rs
@@ -75,20 +75,17 @@ struct SessionInner {
75
}
76
77
impl Session {
78
-
79
/// Create an empty session. Appropriate for testing.
80
- ///
+ ///
81
/// This session wraps an empty state map and status. It can be instantiated for testing purposes.
82
pub fn empty() -> Session {
83
- let inner = SessionInner{
+ let inner = SessionInner {
84
state: HashMap::new(),
85
status: SessionStatus::default(),
86
};
87
Session(Rc::new(RefCell::new(inner)))
88
89
90
91
92
/// Get a `value` from the session.
93
///
94
/// It returns an error if it fails to deserialize as `T` the JSON value associated with `key`.
0 commit comments