fix errors

This commit is contained in:
P0lunin 2019-09-15 13:44:38 +03:00
parent 5296a74e65
commit 0ae31c6454
2 changed files with 5 additions and 5 deletions

View file

@ -90,7 +90,7 @@ impl<'a> SendPoll<'a> {
pub fn disable_notification<T>(mut self, disable_notification: T) -> Self pub fn disable_notification<T>(mut self, disable_notification: T) -> Self
where where
T: Into<Vec<bool>>, T: Into<bool>,
{ {
self.disable_notification = Some(disable_notification.into()); self.disable_notification = Some(disable_notification.into());
self self
@ -98,7 +98,7 @@ impl<'a> SendPoll<'a> {
pub fn reply_to_message_id<T>(mut self, reply_to_message_id: T) -> Self pub fn reply_to_message_id<T>(mut self, reply_to_message_id: T) -> Self
where where
T: Into<Vec<i32>>, T: Into<i32>,
{ {
self.reply_to_message_id = Some(reply_to_message_id.into()); self.reply_to_message_id = Some(reply_to_message_id.into());
self self

View file

@ -54,7 +54,7 @@ impl<'a> Request<'a> for SendVenue<'a> {
&self.ctx.client, &self.ctx.client,
&self.ctx.token, &self.ctx.token,
"sendVenue", "sendVenue",
Some(&self), &self,
) )
.await .await
}) })
@ -142,7 +142,7 @@ impl<'a> SendVenue<'a> {
pub fn foursquare_type<T>(mut self, foursquare_type: T) -> Self pub fn foursquare_type<T>(mut self, foursquare_type: T) -> Self
where where
T: Into<bool>, T: Into<String>,
{ {
self.foursquare_type = Some(foursquare_type.into()); self.foursquare_type = Some(foursquare_type.into());
self self
@ -152,7 +152,7 @@ impl<'a> SendVenue<'a> {
where where
T: Into<ReplyMarkup>, T: Into<ReplyMarkup>,
{ {
self.reply_markup = Some(ReplyMarkup.into()); self.reply_markup = Some(reply_markup.into());
self self
} }
} }