From 73e7bdb8e3ab11f371d5a1aedcac90592510d4a6 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 29 May 2023 20:28:05 +0400 Subject: [PATCH] Fix a clippy warning in examples --- crates/teloxide/examples/dispatching_features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide/examples/dispatching_features.rs b/crates/teloxide/examples/dispatching_features.rs index 6ce059d9..83efc6e9 100644 --- a/crates/teloxide/examples/dispatching_features.rs +++ b/crates/teloxide/examples/dispatching_features.rs @@ -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?;