From 259ce4e4b01327ba582cd4146e2f63b876a4859b Mon Sep 17 00:00:00 2001 From: monosans Date: Tue, 5 Aug 2025 10:41:37 +0300 Subject: [PATCH] fix: use dereferencing for DbType in event sending --- src/ipdb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipdb.rs b/src/ipdb.rs index 22fff23..c0d231f 100644 --- a/src/ipdb.rs +++ b/src/ipdb.rs @@ -57,7 +57,7 @@ impl DbType { ) -> color_eyre::Result<()> { #[cfg(feature = "tui")] drop(tx.send(Event::App(AppEvent::IpDbTotal( - self.clone(), + *self, response.content_length(), )))); @@ -74,7 +74,7 @@ impl DbType { })?; #[cfg(feature = "tui")] drop(tx.send(Event::App(AppEvent::IpDbDownloaded( - self.clone(), + *self, chunk.len(), )))); }