mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix a clippy warning in examples
This commit is contained in:
parent
6911e323fd
commit
73e7bdb8e3
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ async fn main() {
|
|||
.endpoint(|msg: Message, bot: Bot, cmd: MaintainerCommands| async move {
|
||||
match cmd {
|
||||
MaintainerCommands::Rand { from, to } => {
|
||||
let mut rng = rand::rngs::OsRng::default();
|
||||
let mut rng = rand::rngs::OsRng;
|
||||
let value: u64 = rng.gen_range(from..=to);
|
||||
|
||||
bot.send_message(msg.chat.id, value.to_string()).await?;
|
||||
|
|
Loading…
Reference in a new issue