From dc7092fed56cb7c2566ec91e8cb4e9a23efa15c2 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 23 Dec 2020 23:14:58 +0600 Subject: [PATCH 1/5] Update src/requests/has_payload.rs Co-authored-by: Waffle Lapkin --- src/requests/has_payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/has_payload.rs b/src/requests/has_payload.rs index 6c0c1abf..3a1135de 100644 --- a/src/requests/has_payload.rs +++ b/src/requests/has_payload.rs @@ -22,7 +22,7 @@ pub trait HasPayload // we wanted to use As{Mut,Ref} here, but they doesn't work // because of https://github.com/rust-lang/rust/issues/77010 { - /// A type of the payload contained. + /// The type of the payload contained. type Payload: Payload; /// Gain mutable access to the underlying payload. From 18c34a7f70c094dafd0ed86303b914e7c9d38d6f Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 23 Dec 2020 23:16:19 +0600 Subject: [PATCH 2/5] Update src/requests/payload.rs Co-authored-by: Waffle Lapkin --- src/requests/payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/payload.rs b/src/requests/payload.rs index 8b885e96..d9940767 100644 --- a/src/requests/payload.rs +++ b/src/requests/payload.rs @@ -3,7 +3,7 @@ /// Simply speaking, structures implementing this trait represent arguments of /// a Telegram bot API method. /// -/// Also, this trait provides some additional information needed for sending a +/// Also, this trait provides some additional information needed to send a /// request to Telegram. #[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))] pub trait Payload { From bb8148a3b30493fbbbfa2ce722ae025386fdf5ca Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 23 Dec 2020 23:16:42 +0600 Subject: [PATCH 3/5] Update src/requests/request.rs Co-authored-by: Waffle Lapkin --- src/requests/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/request.rs b/src/requests/request.rs index b3f674f3..7e504803 100644 --- a/src/requests/request.rs +++ b/src/requests/request.rs @@ -23,7 +23,7 @@ pub trait Request: HasPayload { * use it before it's integrated in async/await */ - /// A type of an error that may happen while sending a request to Telegram. + /// The type of an error that may happen while sending a request to Telegram. type Err: std::error::Error + Send; /// A type of the future returned by the [`send`](Request::send) method. From f1e5f3f1b31d2c05010be4dba7023e4119ddb21f Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 23 Dec 2020 23:16:49 +0600 Subject: [PATCH 4/5] Update src/requests/request.rs Co-authored-by: Waffle Lapkin --- src/requests/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/request.rs b/src/requests/request.rs index 7e504803..38ca6a61 100644 --- a/src/requests/request.rs +++ b/src/requests/request.rs @@ -26,7 +26,7 @@ pub trait Request: HasPayload { /// The type of an error that may happen while sending a request to Telegram. type Err: std::error::Error + Send; - /// A type of the future returned by the [`send`](Request::send) method. + /// The type of the future returned by the [`send`](Request::send) method. type Send: Future, Self::Err>> + Send; /// A type of the future returned by the [`send_ref`](Request::send_ref) From edc12d000848507261fbbfc7de0824bfe7b27b4f Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 23 Dec 2020 23:18:20 +0600 Subject: [PATCH 5/5] Update src/requests/payload.rs Co-authored-by: Waffle Lapkin --- src/requests/payload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/requests/payload.rs b/src/requests/payload.rs index d9940767..34fa3d4b 100644 --- a/src/requests/payload.rs +++ b/src/requests/payload.rs @@ -7,7 +7,7 @@ /// request to Telegram. #[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))] pub trait Payload { - /// A return type of a Telegram method. + /// The return type of a Telegram method. /// /// Note: it should not include `Result` wrappers (e.g. it should be simply /// [`Message`], [`True`] or something else).