summaryrefslogtreecommitdiff
path: root/src/bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.rs')
-rw-r--r--src/bot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot.rs b/src/bot.rs
index b1a4ea2..9ea2c3a 100644
--- a/src/bot.rs
+++ b/src/bot.rs
@@ -58,6 +58,6 @@ pub async fn repl(bot: Bot, db: Arc<database::DbPool>) {
teloxide::repls2::commands_repl(
bot.auto_send(),
move |bot, msg, cmd|
- answer(bot, msg, cmd, Arc::clone(&db)), Command::ty(),
+ answer(bot, msg, cmd, db.clone()), Command::ty(),
).await;
}