about summary refs log tree commit diff
path: root/src/login.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-26 14:08:07 +0300
committerVika <vika@fireburn.ru>2024-08-26 14:36:57 +0300
commitc79e950ca22c7a957c11e510700664327b042115 (patch)
tree1387e5931dd08cea0d21b2770964e169d7043905 /src/login.rs
parent1a4a9b85b9bf9ae8650a2cd68416476c7d1770b3 (diff)
Appease most clippy warnings
The warnings only remain in places where I need them to remain,
because I either need a reminder to implement something, or I need to
refactor and simplify the code in question.
Diffstat (limited to 'src/login.rs')
-rw-r--r--src/login.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/login.rs b/src/login.rs
index f1e2c81..bfa84b3 100644
--- a/src/login.rs
+++ b/src/login.rs
@@ -1,8 +1,8 @@
 use std::borrow::Cow;
 
 use futures_util::FutureExt;
-use axum::{extract::{FromRef, Host, OriginalUri, Query, State}, http::HeaderValue, response::IntoResponse, Form};
-use axum_extra::{extract::{cookie::{self, Cookie}, CookieJar, SignedCookieJar}, headers::Header, TypedHeader};
+use axum::{extract::{FromRef, Host, Query, State}, http::HeaderValue, response::IntoResponse, Form};
+use axum_extra::extract::{cookie::{self, Cookie}, SignedCookieJar};
 use hyper::{header::{CACHE_CONTROL, LOCATION}, StatusCode};
 use kittybox_frontend_renderer::{Template, LoginPage, LogoutPage};
 use kittybox_indieauth::{AuthorizationResponse, Error, GrantType, PKCEVerifier, Scope, Scopes};
@@ -94,6 +94,7 @@ async fn post(
     };
 
     // XXX: Blocked on https://github.com/hyperium/headers/pull/113
+    // use axum_extra::{headers::Header, TypedHeader};
     // let links = response
     //     .headers()
     //     .iter()