about summary refs log tree commit diff
path: root/src/frontend
diff options
context:
space:
mode:
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),