From 8ea11a215a080b2a3abfd8c877fb39de6c96c183 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 28 Jan 2025 17:09:27 +0200 Subject: [PATCH] remove extra lines --- .../window/tab/item/client/driver/gemini.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/app/browser/window/tab/item/client/driver/gemini.rs b/src/app/browser/window/tab/item/client/driver/gemini.rs index a54df308..dc08a176 100644 --- a/src/app/browser/window/tab/item/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/client/driver/gemini.rs @@ -235,12 +235,10 @@ fn handle( // on chunk { let action = action.clone(); - move |_, total| { - action.update.activate(&format!( - "Received {}...", - format_bytes(total) - )) - } + move |_, total| action.update.activate(&format!( + "Received {}...", + format_bytes(total) + )) }, // on complete { @@ -253,9 +251,7 @@ fn handle( format_bytes(total) )) } - Err(e) => { - action.cancel.activate(&e.to_string()) - } + Err(e) => action.cancel.activate(&e.to_string()) } }, ),