mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-08-02 20:34:46 +02:00
clippy fixes
This commit is contained in:
parent
51d155d1a8
commit
2f81852da1
7 changed files with 18 additions and 18 deletions
|
|
@ -82,8 +82,7 @@ async fn main() -> Result<()> {
|
|||
.expect("Failed to init tracing");
|
||||
|
||||
let config = args()
|
||||
.skip(1)
|
||||
.next()
|
||||
.nth(1)
|
||||
.as_deref()
|
||||
.map(Config::load)
|
||||
.transpose()?
|
||||
|
|
@ -291,7 +290,7 @@ async fn logout(
|
|||
) -> impl IntoResponse {
|
||||
if let Some(session_cookie) = cookie.as_deref().and_then(|cookie| cookie.get(COOKIE_NAME)) {
|
||||
if let Ok(Some(cookie)) = app.session_store.load_session(session_cookie.into()).await {
|
||||
let _ = app.session_store.destroy_session(cookie);
|
||||
let _ = app.session_store.destroy_session(cookie).await;
|
||||
}
|
||||
}
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue