clippy fixes

This commit is contained in:
Robin Appelman 2023-12-29 17:09:11 +01:00
commit 2f81852da1
7 changed files with 18 additions and 18 deletions

View file

@ -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;
}
}
(