From e80d4d5a62106a133574bd99db318d445b531df1 Mon Sep 17 00:00:00 2001 From: RustemB Date: Sun, 20 Oct 2019 16:05:20 +0500 Subject: [PATCH] some cahnges --- src/requests/get_chat.rs | 8 ++++---- src/requests/leave_chat.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/requests/get_chat.rs b/src/requests/get_chat.rs index aa8e3ca4..6a8bc711 100644 --- a/src/requests/get_chat.rs +++ b/src/requests/get_chat.rs @@ -42,21 +42,21 @@ impl GetChat<'_> { } impl<'a> GetChat<'a> { - pub(crate) fn new(bot: &'a Bot, value: F) -> Self + pub(crate) fn new(bot: &'a Bot, chat_id: F) -> Self where F: Into, { Self { bot, - chat_id: value.into(), + chat_id: chat_id.into(), } } - pub fn chat_id(mut self, value: C) -> Self + pub fn chat_id(mut self, chat_id: C) -> Self where C: Into, { - self.chat_id = value.into(); + self.chat_id = chat_id.into(); self } } diff --git a/src/requests/leave_chat.rs b/src/requests/leave_chat.rs index 88ad3fd6..1f52a1f6 100644 --- a/src/requests/leave_chat.rs +++ b/src/requests/leave_chat.rs @@ -40,20 +40,20 @@ impl LeaveChat<'_> { } impl<'a> LeaveChat<'a> { - pub(crate) fn new(bot: &'a Bot, value: F) -> Self + pub(crate) fn new(bot: &'a Bot, chat_id: F) -> Self where F: Into, { Self { bot, - chat_id: value.into(), + chat_id: chat_id.into(), } } - pub fn chat_id(mut self, value: C) -> Self + pub fn chat_id(mut self, chat_id: C) -> Self where C: Into, { - self.chat_id = value.into(); + self.chat_id = chat_id.into(); self } }