From c79e950ca22c7a957c11e510700664327b042115 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 26 Aug 2024 14:08:07 +0300 Subject: 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. --- src/login.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/login.rs') 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() -- cgit 1.4.1