about summary refs log tree commit diff
path: root/src/frontend
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-05-10 21:08:44 +0300
committerVika <vika@fireburn.ru>2022-05-10 21:08:44 +0300
commit34f1c6229bac92212c97cbacc77801d4a2921e4a (patch)
treeecf1fbd51cb914b83561bc84e1a88d1d6a6673e7 /src/frontend
parent2d59c07adc4cc46cd172e45e3f0ad989e9bede33 (diff)
downloadkittybox-34f1c6229bac92212c97cbacc77801d4a2921e4a.tar.zst
database, frontend: code cleanup so clippy doesn't complain
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs
index 106d839..3c3072d 100644
--- a/src/frontend/mod.rs
+++ b/src/frontend/mod.rs
@@ -1,6 +1,6 @@
 use std::convert::TryInto;
 use crate::database::Storage;
-use serde::{Deserialize, Serialize};
+use serde::Deserialize;
 use futures_util::TryFutureExt;
 use warp::{http::StatusCode, Filter, host::Authority, path::FullPath};
 
@@ -234,8 +234,8 @@ pub fn homepage<D: Storage>(db: D, endpoints: IndiewebEndpoints) -> impl Filter<
         .and(crate::util::require_host())
         .and(warp::query())
         .and_then(|db: D, host: Authority, q: QueryParams| async move {
-            let path = format!("https://{}/", host.to_string());
-            let feed_path = format!("https://{}/feeds/main", host.to_string());
+            let path = format!("https://{}/", host);
+            let feed_path = format!("https://{}/feeds/main", host);
 
             match tokio::try_join!(
                 get_post_from_database(&db, &path, None, &None),