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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/mod.rs') 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 -- cgit 1.4.1