From 290258cd1fa64ea6123fbf128961dccd87d0d177 Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 12 Dec 2020 17:59:45 +0300 Subject: [PATCH] Small fixes: fmt & import in test --- src/net/download.rs | 3 ++- src/net/telegram_response.rs | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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]