Skip to content

Commit

Permalink
reformat source code file
Browse files Browse the repository at this point in the history
  • Loading branch information
rainj-me committed Nov 22, 2023
1 parent f64c51c commit efa31bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion monolake-services/src/http/handlers/openid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ where
let cookie = cookie.unwrap();
if cookie.name() == "session-id" {
let session_store = SESSION_STORE.read().unwrap();
if let Some(state) = session_store.get(cookie.value()) && state.access_token.is_some() {
if let Some(state) = session_store.get(cookie.value())
&& state.access_token.is_some()
{
auth_cookie = Some(cookie.value().to_string());
}
break;
Expand Down
4 changes: 3 additions & 1 deletion monolake-services/src/http/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ where

fn poll(self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context<'_>) -> Poll<Self::Output> {
let this = self.project();
if this.accompany_slot.is_none() && let Poll::Ready(t) = this.accompany.poll(cx) {
if this.accompany_slot.is_none()
&& let Poll::Ready(t) = this.accompany.poll(cx)
{
*this.accompany_slot = Some(t);
}
this.main.poll(cx)
Expand Down

0 comments on commit efa31bd

Please sign in to comment.