derive Clone on BotCommand
reason: everything passed in teloxide's filter_map asks Clone (or Copy) implementation
This commit is contained in:
parent
0e10cdbdf0
commit
e0c00d68f9
@ -10,6 +10,7 @@ pub enum CommandError {
|
||||
ValidationError(String),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct BotCommand {
|
||||
command: String,
|
||||
args: Option<String>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user