diff options
author | Vika <vika@fireburn.ru> | 2022-03-02 23:41:58 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-03-02 23:41:58 +0300 |
commit | 4de2f901a549f051c1a03b83fc114d38638dcbfb (patch) | |
tree | 9b18a2e9f52367ecf5c606df6e4ff1d475f935c1 /src/frontend/login.rs | |
parent | f837312f3a162daa865600c5248589935d2aac57 (diff) | |
download | kittybox-4de2f901a549f051c1a03b83fc114d38638dcbfb.tar.zst |
frontend: convert to warp
Warp is using hyperium/http instead of http-types, so I replaced all of the http-types usage (mostly status codes) by Warp's http::StatusCode. Additionally some of the struct fields were made public to allow initialization from public code.
Diffstat (limited to 'src/frontend/login.rs')
-rw-r--r-- | src/frontend/login.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/frontend/login.rs b/src/frontend/login.rs index 1c7c662..35ce3db 100644 --- a/src/frontend/login.rs +++ b/src/frontend/login.rs @@ -5,7 +5,6 @@ use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha256}; use std::convert::TryInto; use std::str::FromStr; -use tide::{Request, Response, Result}; use crate::frontend::templates::Template; use crate::frontend::{FrontendError, IndiewebEndpoints}; |