From be5d28e6ec215c5cc69164f982557123f492d6b3 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 27 Jul 2022 12:40:18 +0300 Subject: [PATCH] remove redundant clone --- src/bot/handler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bot/handler.rs b/src/bot/handler.rs index e65d6343..3c775f1f 100644 --- a/src/bot/handler.rs +++ b/src/bot/handler.rs @@ -49,9 +49,8 @@ impl Handler { let db_pool = connection_pool.clone(); let tg_api = api.clone(); - thread_pool.spawn(move || { - Self::process_message_or_channel_post(db_pool.clone(), tg_api.clone(), update) - }); + thread_pool + .spawn(move || Self::process_message_or_channel_post(db_pool, tg_api, update)); } thread::sleep(interval);