From e0c00d68f924bab2512e7b44cdda9fbedb852386 Mon Sep 17 00:00:00 2001 From: Akulij Date: Tue, 20 May 2025 01:16:52 +0500 Subject: [PATCH] derive Clone on BotCommand reason: everything passed in teloxide's filter_map asks Clone (or Copy) implementation --- src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.rs b/src/commands.rs index d6bcdb6..5e8f7ca 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -10,6 +10,7 @@ pub enum CommandError { ValidationError(String), } +#[derive(Clone)] pub struct BotCommand { command: String, args: Option,