1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

Check code with rustfmt not to introduce format commits (#88)

This commit is contained in:
Yuki Okushi
2020-07-21 03:51:51 +09:00
committed by GitHub
parent e5fe8d42fa
commit 7e6bdf2eb2
14 changed files with 59 additions and 80 deletions

View File

@ -552,7 +552,11 @@ impl IdentityPolicy for CookieIdentityPolicy {
fn from_request(&self, req: &mut ServiceRequest) -> Self::Future {
ok(self.0.load(req).map(
|CookieValue { identity, login_timestamp, .. }| {
|CookieValue {
identity,
login_timestamp,
..
}| {
if self.0.requires_oob_data() {
req.extensions_mut()
.insert(CookieIdentityExtention { login_timestamp });