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/frontend/mod.rs | 2 +- src/frontend/onboarding.rs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 81a03ed..4120b55 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -192,7 +192,7 @@ async fn get_post_from_database( .await { Ok(result) => match result { - Some((post, cursor)) => match filter_post(post, user.as_deref()) { + Some((post, cursor)) => match filter_post(post, user) { Some(post) => Ok((post, cursor)), None => { // TODO: Authentication diff --git a/src/frontend/onboarding.rs b/src/frontend/onboarding.rs index 9f3f36b..be1669f 100644 --- a/src/frontend/onboarding.rs +++ b/src/frontend/onboarding.rs @@ -75,13 +75,6 @@ async fn onboard( } tracing::debug!("Setting settings..."); - let user_domain = format!( - "{}{}", - user.me.host_str().unwrap(), - user.me.port() - .map(|port| format!(":{}", port)) - .unwrap_or_default() - ); db.set_setting::(&user.me, data.blog_name.to_owned()) .await .map_err(FrontendError::from)?; -- cgit 1.4.1