Fix formatting

This commit is contained in:
Fedir Panasenko 2024-07-20 23:42:44 -04:00
parent 00c6974788
commit 72f7944e38

View file

@ -53,10 +53,10 @@ pub use parse_mode::DefaultParseMode;
feature = "trace_adaptor", feature = "trace_adaptor",
feature = "erased" feature = "erased"
))] ))]
// Tests composition of all possible adaptors. The goal of this test is to // Tests composition of all possible adaptors. The goal of this test is to
// catch situations when wrapped by adaptor bot loses Requester trait bounds. // catch situations when wrapped by adaptor bot loses Requester trait bounds.
// The problem occurs because Throttle adaptor holds queue of requests, thus // The problem occurs because Throttle adaptor holds queue of requests, thus
// introducing requirement for all requests to also implement Clone. // introducing requirement for all requests to also implement Clone.
mod composition_test { mod composition_test {
use crate::{requests::RequesterExt, types::ParseMode, Bot}; use crate::{requests::RequesterExt, types::ParseMode, Bot};
use throttle::Limits; use throttle::Limits;
@ -69,7 +69,7 @@ mod composition_test {
async fn composition() { async fn composition() {
let bot = Bot::new("TOKEN"); let bot = Bot::new("TOKEN");
// Erased adaptor validates Requester trait bounds, so this should fail to // Erased adaptor validates Requester trait bounds, so this should fail to
// compile whenever issue occurs. // compile whenever issue occurs.
let _ = bot let _ = bot
.throttle(Limits::default()) .throttle(Limits::default())