diff --git a/src/net/download.rs b/src/net/download.rs index d19de588..16694821 100644 --- a/src/net/download.rs +++ b/src/net/download.rs @@ -34,7 +34,8 @@ pub trait Download<'w> /// /// ```no_run /// use teloxide_core::{ - /// requests::{Download, Request, Requester}, + /// net::Download, + /// requests::{Request, Requester}, /// types::File as TgFile, /// Bot, /// }; diff --git a/src/net/telegram_response.rs b/src/net/telegram_response.rs index fd3dbc9e..04f8f4c1 100644 --- a/src/net/telegram_response.rs +++ b/src/net/telegram_response.rs @@ -62,9 +62,10 @@ mod tests { let s = r#"{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}"#; let val = serde_json::from_str::>(s).unwrap(); - assert!( - matches!(val, TelegramResponse::Err { error: ApiError::TerminatedByOtherGetUpdates, .. }) - ); + assert!(matches!( + val, + TelegramResponse::Err { error: ApiError::TerminatedByOtherGetUpdates, .. } + )); } #[test]