mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
clippy
This commit is contained in:
@ -162,14 +162,12 @@ fn enforce_policies(req: &ServiceRequest, configuration: &Configuration) {
|
||||
) {
|
||||
identity.logout();
|
||||
return;
|
||||
} else {
|
||||
if let Err(err) = identity.set_last_visited_at() {
|
||||
tracing::warn!(
|
||||
error.display = %err,
|
||||
error.debug = ?err,
|
||||
"Failed to set the last visited timestamp on `Identity` for an incoming request."
|
||||
);
|
||||
}
|
||||
} else if let Err(err) = identity.set_last_visited_at() {
|
||||
tracing::warn!(
|
||||
error.display = %err,
|
||||
error.debug = ?err,
|
||||
"Failed to set the last visited timestamp on `Identity` for an incoming request."
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user