From 34f1c6229bac92212c97cbacc77801d4a2921e4a Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 10 May 2022 21:08:44 +0300 Subject: database, frontend: code cleanup so clippy doesn't complain --- src/frontend/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/frontend') 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(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), -- cgit 1.4.1