Skip to content

Commit f474284

Browse files
kingledionJohnTitor
authored andcommitted
Performed cargo fmt
1 parent e67e4b0 commit f474284

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

actix-session/src/session.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,17 @@ struct SessionInner {
7575
}
7676

7777
impl Session {
78-
7978
/// Create an empty session. Appropriate for testing.
80-
///
79+
///
8180
/// This session wraps an empty state map and status. It can be instantiated for testing purposes.
8281
pub fn empty() -> Session {
83-
let inner = SessionInner{
82+
let inner = SessionInner {
8483
state: HashMap::new(),
8584
status: SessionStatus::default(),
8685
};
8786
Session(Rc::new(RefCell::new(inner)))
8887
}
8988

90-
91-
9289
/// Get a `value` from the session.
9390
///
9491
/// It returns an error if it fails to deserialize as `T` the JSON value associated with `key`.

0 commit comments

Comments
 (0)