From b0a49203e8e5dc39aaa03568d05e2376bd17c785 Mon Sep 17 00:00:00 2001 From: Milad Nekofar Date: Thu, 7 Mar 2024 18:05:15 +0330 Subject: [PATCH] fix: solve some formatting issues for image variables --- src/routes.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes.rs b/src/routes.rs index 0c61ada..2d02f9c 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -307,7 +307,7 @@ pub async fn handle_fs_result(req: Request, ctx: RouteContext) -> worker:: _ => None, }; - let (image) = match (community, platform) { + let image = match (community, platform) { (Some(LilNouns), Some(Ethereum)) => { let image = req .url() @@ -315,7 +315,7 @@ pub async fn handle_fs_result(req: Request, ctx: RouteContext) -> worker:: .join(format!("{}/og.png", sqid).as_str()) .unwrap() .to_string(); - (image) + image } (Some(LilNouns), Some(PropLot)) => { let image = req @@ -324,7 +324,7 @@ pub async fn handle_fs_result(req: Request, ctx: RouteContext) -> worker:: .join(format!("{}/og.png", sqid).as_str()) .unwrap() .to_string(); - (image) + image } (Some(LilNouns), Some(MetaGov)) => { let image = req @@ -333,9 +333,9 @@ pub async fn handle_fs_result(req: Request, ctx: RouteContext) -> worker:: .join(format!("{}/og.png", sqid).as_str()) .unwrap() .to_string(); - (image) + image } - _ => (String::new()), + _ => String::new(), }; let html_doc = format!(